#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. | |
| Matrix_nxn< T, N > | invert2 () |
| 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 > | identity () |
| 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 44 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 56 of file Matrix_nxn.h. |
|
||||||||||
|
Constructor that initializes the matrix with the values in the passed array.
Definition at line 74 of file Matrix_nxn.h. |
|
||||||||||
|
Copy constructor.
Definition at line 91 of file Matrix_nxn.h. |
|
|||||||||
|
Destructor. Complexity: n^2 Definition at line 105 of file Matrix_nxn.h. |
|
||||||||||
|
Copy operator.
Definition at line 118 of file Matrix_nxn.h. References Matrix_nxn< T, N >::content. |
|
||||||||||
|
Copy operator.
Definition at line 131 of file Matrix_nxn.h. |
|
||||||||||
|
Copies contents of matrix to passed array.
Definition at line 145 of file Matrix_nxn.h. References Vector_n< T, N >::copyTo(). |
Here is the call graph for this function:

|
||||||||||
|
Constant row vector access operator.
Definition at line 159 of file Matrix_nxn.h. |
|
||||||||||
|
Row vector access operator.
Definition at line 171 of file Matrix_nxn.h. |
|
||||||||||
|
Operator +=.
Definition at line 182 of file Matrix_nxn.h. References Matrix_nxn< T, N >::content. |
|
||||||||||
|
Operator -=.
Definition at line 195 of file Matrix_nxn.h. References Matrix_nxn< T, N >::content. |
|
||||||||||
|
Operator *=.
Definition at line 208 of file Matrix_nxn.h. |
|
||||||||||
|
Operator /=.
Definition at line 220 of file Matrix_nxn.h. |
|
|||||||||
|
Transposes this matrix.
Definition at line 229 of file Matrix_nxn.h. Referenced by Matrix_nxn< T, N >::invert2(). |
|
|||||||||
|
Inverts this matrix. Matrix must not be singular
Definition at line 243 of file Matrix_nxn.h. References Matrix_nxn< T, N >::identity(), MVTools::isNearInf(), MVTools::isNearNegZero(), MVTools::isNearPosInf(), and MVTools::isNearZero(). Referenced by operator/(). |
Here is the call graph for this function:

|
|||||||||
|
Inverts this matrix. Matrix must not be singular
Definition at line 363 of file Matrix_nxn.h. References e, Matrix_nxn< T, N >::solve(), and Matrix_nxn< T, N >::transpose(). |
Here is the call graph for this function:

|
||||||||||
|
Solves the system A*x=b where A is the actual matrix.
Definition at line 383 of file Matrix_nxn.h. References MVTools::isNearInf(), MVTools::isNearNegZero(), MVTools::isNearPosInf(), and MVTools::isNearZero(). Referenced by VLCBallSpecialist::createBallPerceptLevenbergMarquardt(), GT2005BallSpecialist::createBallPerceptLevenbergMarquardt(), and Matrix_nxn< T, N >::invert2(). |
Here is the call graph for this function:

|
|||||||||
|
Returns determinant of this matrix.
Definition at line 538 of file Matrix_nxn.h. References MVTools::isNearInf(), MVTools::isNearPosInf(), and MVTools::isNearZero(). |
Here is the call graph for this function:

|
|||||||||
|
Returns the identity matrix with same dimensions like this matrix.
Definition at line 648 of file Matrix_nxn.h. Referenced by Matrix_nxn< T, N >::invert(). |
|
|||||
|
The vectors holding the contents of the matrix.
Definition at line 659 of file Matrix_nxn.h. Referenced by Matrix_nxn< T, N >::operator+=(), Matrix_nxn< T, N >::operator-=(), and Matrix_nxn< T, N >::operator=(). |
1.3.6