|
Itasca C++ Interface
|
DMatrix is a Matrix that defaults to type double... More...
#include <matrix.h>
Public Member Functions | |
| constexpr | DMatrix () |
| Default constructor, no data initialization. | |
| constexpr | DMatrix (const DMatrix< SX, SY > &m) |
| Copy constructor. | |
| constexpr | DMatrix (const Matrix< double, SX, SY > &m) |
| Copy constructor, for Matrix. | |
| constexpr const DMatrix< SX, SY > & | operator= (const DMatrix< SX, SY > &m) |
| Equality operator. | |
| Public Member Functions inherited from Matrix< double, SX, SX > | |
| PUSHWARNING | Matrix () |
| Default constructor, does nothing and no initialization. | |
| constexpr const Matrix< double, SX, SY > & | operator= (const Matrix< double, SX, SY > &m) |
| Equality operator. | |
| constexpr const double & | get (unsigned x, unsigned y) const |
| Retrieve value at row x column y. Bounds checking is done in a debug compile. | |
| constexpr const Column | operator[] (unsigned y) const |
| Array access operator returns a Column helper class, which has it's own [] operator to access a column of the row. | |
| constexpr const double & | operator() (unsigned x, unsigned y) const |
| () operator access to get(x,y) | |
| constexpr const Matrix< double, SX, SY > & | operator+= (const Matrix< double, SX, SY > &m) |
| In-place matrix addition. | |
| constexpr const Matrix< double, SX, SY > & | operator-= (const Matrix< double, SX, SY > &m) |
| In-place matrix subtraction. | |
| constexpr const Matrix< double, SX, SY > & | operator*= (const double &t) |
| In-place multiplication by a scalar. | |
| constexpr const Matrix< double, SX, SY > & | operator/= (const double &t) |
| In-place division by a scalar. | |
| Matrix< double, SX, SY > | operator+ (const Matrix< double, SX, SY > &m) const |
| Binary addition operator. | |
| Matrix< double, SX, SY > | operator- (const Matrix< double, SX, SY > &m) const |
| Binary subtraction operator. | |
| Matrix< double, SX, SY > | operator/ (const double &t) const |
| Binary scalar division operator. | |
| void | addBlock (const Matrix< double, SX2, SY2 > &m, unsigned iSrc, unsigned jSrc, unsigned iDst, unsigned jDst) |
| Adds a block to this matrix from matrix m using the block size (BX,BY), from block indices (iSrc,jSrc) to block indices (iDst,jDst). | |
| void | addGenBlock (const Matrix< double, SX2, SY2 > &m, unsigned iSrc, unsigned jSrc, unsigned iDst, unsigned jDst) |
| Adds a block to this matrix from matrix m using the block size (BX,BY), from normal not block indices (iSrc,jSrc) to (iDst,jDst). | |
| double | maxNorm () const |
| Returns the infinity norm of the matrix, or the maximum absolute magnitude of any element. | |
| Matrix< double, SY, SX > | transpose () const |
| Return the transpose of the matrix. | |
| double | trace () const |
| Return the trace of the matrix or the sum of the diagonal components. Works also if the matrix is not square. | |
| constexpr void | set (const double &t=double()) |
| Set all entries in the matrix to t. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<unsigned SX> | |
| DSymMatrix< SX > | toSymMatrix (const SymTensor &s) |
| BASE_EXPORT DMatrix< 3, 3 > | toMatrix (const SymTensor &s) |
| BASE_EXPORT DMatrix< 2, 2 > | toMatrix2 (const SymTensor &s) |
| SymTensor | toSymTensor (const DMatrix< 3, 3 > &m) |
| Related Symbols inherited from Matrix< double, SX, SX > | |
| Matrix< double, 3, 3 > | outerProduct (const Vector3< double > &v1, const Vector3< double > &v2) |
| Creates a 3X3 Matrix from the outer product of two Vector3 types. | |
| Matrix< double, 2, 2 > | outerProduct (const Vector2< double > &v1, const Vector2< double > &v2) |
| Creates a 2X2 Matrix from the outer product of two Vector2 types. | |
| constexpr double | determinant (const Matrix< double, 3, 3 > &mat) |
| Returns the determinant of a 3X3 Matrix. | |
| constexpr double | determinant (const Matrix< double, 2, 2 > &mat) |
| Returns the determinant of a 2X2 Matrix. | |
| constexpr Matrix< double, 3, 3 > | inverse (const Matrix< double, 3, 3 > &mat) |
| Returns the inverse of a 3X3 Matrix. | |
| constexpr Matrix< double, 2, 2 > | inverse (const Matrix< double, 2, 2 > &mat) |
| Returns the inverse of a 2X2 Matrix. | |
| constexpr Vector2< double > | operator* (const Matrix< double, 2, 2 > &m, const Vector2< double > &v) |
| constexpr Vector3< double > | operator* (const Matrix< double, 3, 3 > &m, const Vector3< double > &v) |
| Vector3< double > | operator* (const SymMatrix< double, 3 > &m, const Vector3< double > &v) |
Additional Inherited Members | |
| Static Public Member Functions inherited from Matrix< double, SX, SX > | |
| static constexpr Matrix< double, SX, SY > | identity () |
| Returns an identity matrix (or as close as you can get if not diagonal). | |
| Public Attributes inherited from Matrix< double, SX, SX > | |
| double | t_ [SX][SY] |