![]() |
ULIS
dev4.0.7
Utility Library for Imaging Systems
|
The TMatrixN class provides a simple N square matrix class for geometry applications. More...
Public Types | |
typedef TVectorN< T, P, N > | tColumn |
typedef P | tComputation |
typedef TVectorN< T, P, N > | tRow |
Public Member Functions | |
TMatrixN () | |
TMatrixN (const TMatrixN< T, P, N > &iOther) | |
template<typename U , typename Q , uint8 M> | |
TMatrixN (const TMatrixN< U, Q, M > &iOther) | |
TMatrixN (std::initializer_list< T > iValues) | |
TMatrixN (std::initializer_list< tRow > iRows) | |
TMatrixN (T iValue) | |
T * | Data () |
const T * | Data () const |
tComputation | Determinant () const |
TMatrixN< T, P, N > | Inverse () const |
bool | operator!= (const TMatrixN< T, P, N > &iOther) |
TMatrixN< T, P, N > & | operator*= (const TMatrixN< T, P, N > &iOther) |
TMatrixN< T, P, N > & | operator*= (T iValue) |
TMatrixN< T, P, N > & | operator+= (const TMatrixN< T, P, N > &iOther) |
TMatrixN< T, P, N > & | operator+= (T iValue) |
TMatrixN< T, P, N > | operator- () const |
TMatrixN< T, P, N > & | operator-= (const TMatrixN< T, P, N > &iOther) |
TMatrixN< T, P, N > & | operator-= (T iValue) |
TMatrixN< T, P, N > & | operator/= (const TMatrixN< T, P, N > &iOther) |
TMatrixN< T, P, N > & | operator/= (T iValue) |
TMatrixN< T, P, N > & | operator= (const TMatrixN< T, P, N > &iOther) |
bool | operator== (const TMatrixN< T, P, N > &iOther) |
tRow & | operator[] (int iIndex) |
const tRow & | operator[] (int iIndex) const |
TMatrixN< T, P, N > | Rotated90CCW () const |
TMatrixN< T, P, N > | Transpose () const |
Public Attributes | |
tRow | m [N] |
The TMatrixN class is a template class that provides basic matrix functionnalities, it can be used with any numeric types, ranging from integer values to floating point values.
typedef TVectorN< T, P, N > TMatrixN< T, P, N >::tColumn |
typedef P TMatrixN< T, P, N >::tComputation |
Default constructor ( identity matrix ).
Constructor from input diagonal value.
TMatrixN< T, P, N >::TMatrixN | ( | std::initializer_list< T > | iValues | ) |
Constructor from input cells values.
TMatrixN< T, P, N >::TMatrixN | ( | std::initializer_list< tRow > | iRows | ) |
Constructor from row vector values.
TMatrixN< T, P, N >::TMatrixN | ( | const TMatrixN< T, P, N > & | iOther | ) |
Copy constructor.
TMatrixN< T, P, N >::TMatrixN | ( | const TMatrixN< U, Q, M > & | iOther | ) |
Conversion constructor from other matrix type.
T * TMatrixN< T, P, N >::Data | ( | ) |
Return a pointer to the base storage.
const T * TMatrixN< T, P, N >::Data | ( | ) | const |
Return a pointer to the base storage.
TMatrixN< T, P, N >::tComputation TMatrixN< T, P, N >::Determinant | ( | ) | const |
Obtain the determinant of the matrix.
TMatrixN< T, P, N > TMatrixN< T, P, N >::Inverse | ( | ) | const |
Obtain the inverse of the matrix.
bool TMatrixN< T, P, N >::operator!= | ( | const TMatrixN< T, P, N > & | iOther | ) |
Inequality operator.
TMatrixN< T, P, N > & TMatrixN< T, P, N >::operator*= | ( | const TMatrixN< T, P, N > & | iOther | ) |
Unary multiplication operator with matrix.
TMatrixN< T, P, N > & TMatrixN< T, P, N >::operator*= | ( | T | iValue | ) |
Unary multiplication operator with value.
TMatrixN< T, P, N > & TMatrixN< T, P, N >::operator+= | ( | const TMatrixN< T, P, N > & | iOther | ) |
Unary addition operator with matrix.
TMatrixN< T, P, N > & TMatrixN< T, P, N >::operator+= | ( | T | iValue | ) |
Unary addition operator with value.
TMatrixN< T, P, N > TMatrixN< T, P, N >::operator- | ( | ) | const |
Unary negative operator.
TMatrixN< T, P, N > & TMatrixN< T, P, N >::operator-= | ( | const TMatrixN< T, P, N > & | iOther | ) |
Unary substraction operator with matrix.
TMatrixN< T, P, N > & TMatrixN< T, P, N >::operator-= | ( | T | iValue | ) |
Unary substraction operator with value.
TMatrixN< T, P, N > & TMatrixN< T, P, N >::operator/= | ( | const TMatrixN< T, P, N > & | iOther | ) |
Unary division operator with matrix.
TMatrixN< T, P, N > & TMatrixN< T, P, N >::operator/= | ( | T | iValue | ) |
Unary division operator with value.
TMatrixN< T, P, N > & TMatrixN< T, P, N >::operator= | ( | const TMatrixN< T, P, N > & | iOther | ) |
Assignment operator from matrix.
bool TMatrixN< T, P, N >::operator== | ( | const TMatrixN< T, P, N > & | iOther | ) |
Equality operator.
TMatrixN< T, P, N >::tColumn & TMatrixN< T, P, N >::operator[] | ( | int | iIndex | ) |
Subscript accessor for matrix columns.
const TMatrixN< T, P, N >::tColumn & TMatrixN< T, P, N >::operator[] | ( | int | iIndex | ) | const |
Subscript accessor for const matrix columns.
TMatrixN< T, P, N > TMatrixN< T, P, N >::Rotated90CCW | ( | ) | const |
Obtain the transpose of the matrix.
TMatrixN< T, P, N > TMatrixN< T, P, N >::Transpose | ( | ) | const |
Obtain the transpose of the matrix.