#include <Matrix_nxn.h>
Public Member Functions | |
Matrix_nxn () | |
Standard constructor. | |
Matrix_nxn (const T *v) | |
Constructor that initializes the matrix with the values in the passed array. | |
Matrix_nxn (const Matrix_nxn< T, N > &m) | |
Copy constructor. | |
~Matrix_nxn () | |
Destructor. | |
Matrix_nxn< T, N > & | operator= (const Matrix_nxn< T, N > &m) |
Copy operator. | |
Matrix_nxn< T, N > & | operator= (const T *m) |
Copy operator. | |
void | copyTo (T *m) const |
Copies contents of matrix to passed array. | |
const Vector_n< T, N > & | operator[] (size_t i) const |
Constant row vector access operator. | |
Vector_n< T, N > & | operator[] (size_t i) |
Row vector access operator. | |
Matrix_nxn< T, N > & | operator+= (const Matrix_nxn< T, N > &m) |
Operator +=. | |
Matrix_nxn< T, N > & | operator-= (const Matrix_nxn< T, N > &m) |
Operator -=. | |
Matrix_nxn< T, N > & | operator *= (const Matrix_nxn< T, N > &m) |
Operator *=. | |
Matrix_nxn< T, N > & | operator/= (const Matrix_nxn< T, N > &m) |
Operator /=. | |
Matrix_nxn< T, N > & | transpose () |
Transposes this matrix. | |
Matrix_nxn< T, N > & | invert () |
Inverts this matrix. | |
Vector_n< T, N > | solve (Vector_n< T, N > b) const |
Solves the system A*x=b where A is the actual matrix. | |
T | det () const |
Returns determinant of this matrix. | |
Static Public Member Functions | |
Matrix_nxn< T, N > | eye () |
Returns the identity matrix with same dimensions like this matrix. | |
Private Attributes | |
Vector_n< T, N > * | content |
The vectors holding the contents of the matrix. |
Matrix_nxn represents a nxn matrix of type T. The class supplies standard arithmetic operations.
Definition at line 40 of file Matrix_nxn.h.
|
Standard constructor. Initializes the matrix with values supplied by the standard constructor of T. Complexity: n^2 Definition at line 52 of file Matrix_nxn.h. |
|
Constructor that initializes the matrix with the values in the passed array.
Definition at line 70 of file Matrix_nxn.h. |
|
Copy constructor.
Definition at line 87 of file Matrix_nxn.h. |
|
Destructor. Complexity: n^2 Definition at line 101 of file Matrix_nxn.h. |
|
Copy operator.
Definition at line 114 of file Matrix_nxn.h. |
|
Copy operator.
Definition at line 127 of file Matrix_nxn.h. |
|
Copies contents of matrix to passed array.
Definition at line 141 of file Matrix_nxn.h. |
|
Constant row vector access operator.
Definition at line 155 of file Matrix_nxn.h. |
|
Row vector access operator.
Definition at line 167 of file Matrix_nxn.h. |
|
Operator +=.
Definition at line 178 of file Matrix_nxn.h. |
|
Operator -=.
Definition at line 191 of file Matrix_nxn.h. |
|
Operator *=.
Definition at line 204 of file Matrix_nxn.h. |
|
Operator /=.
Definition at line 216 of file Matrix_nxn.h. |
|
Transposes this matrix. Complexity: n^2 Definition at line 227 of file Matrix_nxn.h. Referenced by Matrix_nxn< double, 2 >::transpose(). |
|
Inverts this matrix. Complexity: n^3 Definition at line 238 of file Matrix_nxn.h. Referenced by Matrix_nxn< double, 2 >::invert(). |
|
Solves the system A*x=b where A is the actual matrix.
Definition at line 252 of file Matrix_nxn.h. Referenced by KalmanConstantSpeedModel::calculateVarianceAdaptionPolynom(), GT2004BallSpecialist::createBallPerceptLevenbergMarquardt(), and invert2(). |
|
Returns determinant of this matrix.
Definition at line 407 of file Matrix_nxn.h. Referenced by det(). |
|
Returns the identity matrix with same dimensions like this matrix.
Definition at line 519 of file Matrix_nxn.h. |
|
The vectors holding the contents of the matrix.
Definition at line 530 of file Matrix_nxn.h. Referenced by Matrix_nxn< double, 2 >::operator+=(), Matrix_nxn< double, 2 >::operator-=(), and Matrix_nxn< double, 2 >::operator=(). |