|
Itasca C++ Interface
|
DVMatrix is a double version of VMatrix. More...
#include <matrix.h>
Public Member Functions | |
| DVMatrix () | |
| Default constructor, no data initialization. | |
| DVMatrix (const double &d) | |
| Explicit contructor, initializes all elements to t. | |
| DVMatrix (const DVMatrix< S > &m) | |
| Copy constructor. | |
| DVMatrix (const Matrix< double, S, 1 > &m) | |
| Copy constructor, for Matrix class. | |
| const DVMatrix< S > & | operator= (const DVMatrix< S > &m) |
| Equality operator. | |
| const DVMatrix< S > & | operator= (const Matrix< double, S, 1 > &m) |
| Equality operator, for matrix class. | |
Public Member Functions inherited from VMatrix< double, S > | |
| VMatrix () | |
| Default constructor - no data initialization. | |
| VMatrix (const double &t) | |
| Explicit constructor, all elements initialzed to t. | |
| VMatrix (const VMatrix< double, S > &m) | |
| Copy constructor. | |
| VMatrix (const Matrix< double, S, 1 > &m) | |
| Copy contructor, works on Matrix if SY is 1. | |
| const VMatrix< double, S > & | operator= (const VMatrix< double, S > &m) |
| Equality operator. | |
| const VMatrix< double, S > & | operator= (const Matrix< double, S, 1 > &m) |
| Equality operator, works on Matrix is SY is 1. | |
| const double & | operator[] (unsigned x) const |
| 1D version of array operator, which currently unfortunately eliminates [x][0] syntax on VMatrix (may need to fix later). | |
| double & | operator[] (unsigned x) |
| 1D version of array operator, which currently unfortunately eliminates [x][0] syntax on VMatrix (may need to fix later). | |
Public Member Functions inherited from Matrix< double, S, 1 > | |
| Matrix () | |
| Default constructor, does nothing and no initialization. | |
| Matrix (const double &t) | |
| Explicit constructor, initializes all elements to value t. | |
| Matrix (const Matrix< double, SX, SY > &m) | |
| Copy constructor. | |
| const Matrix< double, SX, SY > & | operator= (const Matrix< double, SX, SY > &m) |
| Equality operator. | |
| const double & | get (unsigned x, unsigned y) const |
| Retrieve value at row x column y. Bounds checking is done in a debug compile. | |
| double & | get (unsigned x, unsigned y) |
| Retrieve value at row x column y. Bounds checking is done in a debug compile. | |
| 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. | |
| Column | operator[] (unsigned y) |
| Array access operator returns a Column helper class, which has it's own [] operator to access a column of the row. | |
| const double & | operator() (unsigned x, unsigned y) const |
| () operator access to get(x,y) | |
| double & | operator() (unsigned x, unsigned y) |
| () operator access to get(x,y) | |
| const Matrix< double, SX, SY > & | operator+= (const Matrix< double, SX, SY > &m) |
| In-place matrix addition. | |
| const Matrix< double, SX, SY > & | operator-= (const Matrix< double, SX, SY > &m) |
| In-place matrix subtraction. | |
| const Matrix< double, SX, SY > & | operator *= (const double &t) |
| In-place multiplication by a scalar. | |
| 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 multiplication operator. | |
| Matrix< double, SX, SZ > | operator * (const Matrix< double, SY, SZ > &m) const |
| Binary matrix multiplication operator – simplest naive approach. | |
| 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. | |
| void | set (const double &t=double()) |
| Set all entries in the matrix to t. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Matrix< double, S, 1 > | |
| static 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, S, 1 > | |
| double | t_ [SX][SY] |
Related Functions inherited from VMatrix< double, S > | |
| VMatrix< double, 2 > | toMatrix (const Vector2< double > &v) |
| VMatrix< double, 3 > | toMatrix (const Vector3< double > &v) |
Related Functions inherited from Matrix< double, S, 1 > | |
| Vector2< double > | operator * (const Matrix< double, 2, 2 > &m, const Vector2< double > &v) |
| 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) |
| 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. | |
| double | determinant (const Matrix< double, 3, 3 > &mat) |
| Returns the determinant of a 3X3 Matrix. More... | |
| double | determinant (const Matrix< double, 2, 2 > &mat) |
| Returns the determinant of a 2X2 Matrix. | |
| Matrix< double, 3, 3 > | inverse (const Matrix< double, 3, 3 > &mat) |
| Returns the inverse of a 3X3 Matrix. More... | |
1.8.15