Generic 3x3 matrix. More...
#include <jrl/mathtools/matrix3x3.hh>
Public Member Functions | |
Matrix3x3 () | |
Default constructor. | |
Matrix3x3 (const T x) | |
Constructor form a scalar. | |
Matrix3x3 (const T x0, const T x1, const T x2, const T x3, const T x4, const T x5, const T x6, const T x7, const T x8) | |
Constructor from 9 scalars. | |
Matrix3x3 (const Matrix3x3< T > &v) | |
Copy constructor. | |
template<typename T2> | |
Matrix3x3 (const Matrix3x3< T2 > &v) | |
Hybrid copy constructor. | |
T & | operator[] (unsigned int i) |
i-th element considering the matrix as an array. | |
const T & | operator[] (unsigned int i) const |
i-th element considering the matrix as an array. | |
T & | operator() (unsigned int i, unsigned int j) |
Access by giving the (i,j) element. | |
const T & | operator() (unsigned int i, unsigned int j) const |
Access by giving the (i,j) element. | |
void | setZero () |
Set to zero matrix. | |
void | setIdentity () |
Set to identity. | |
Matrix3x3< T > | operator+ (const Matrix3x3< T > &B) const |
Adition operator. | |
Matrix3x3< T > | operator- (const Matrix3x3< T > &B) const |
Substraction operator. | |
Matrix3x3< T > | operator* (const Matrix3x3< T > &B) const |
Multiplication operator with another matrix. | |
void | CeqthismulB (const Matrix3x3< T > &B, Matrix3x3< T > &C) const |
Matrix3x3< T > | operator* (const T &r) const |
Multiplication operator with a constant. | |
Matrix3x3< T > | Transpose () const |
Transposition. | |
void | Transpose (Matrix3x3< T > &A) const |
Transposition. | |
void | Inversion (Matrix3x3< T > &A) const |
Inversion. | |
T | determinant () const |
Determinant. | |
void | Fill (T value) |
Fills with value. | |
bool | IsIdentity () const |
returns true if matrix is identity. | |
void | operator+= (const Matrix3x3< T > &B) |
Self matrix addition. | |
void | operator-= (const Matrix3x3< T > &B) |
Local matrix subtraction. | |
void | operator*= (const Matrix3x3< T > &B) |
Local matrix multiplication. | |
void | operator*= (const T &t) |
Matrix product with a scalar. | |
std::ostream & | display (std::ostream &os) const |
Public Attributes | |
T | m [9] |
The data array. | |
Generic 3x3 matrix.
This matrix has been designed to be as simple and efficient as possible.
|
inline |
Default constructor.
Referenced by CeqthismulB(), Inversion(), operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), Transpose(), and Transpose().
|
inline |
Constructor form a scalar.
|
inlineexplicit |
Constructor from 9 scalars.
|
inline |
Copy constructor.
|
inline |
Hybrid copy constructor.
|
inline |
References m, and Matrix3x3().
|
inline |
|
inline |
References m.
Referenced by jrlMathTools::operator<<().
|
inline |
Fills with value.
References m.
|
inline |
Inversion.
References determinant(), m, and Matrix3x3().
|
inline |
returns true if matrix is identity.
References m.
|
inline |
Access by giving the (i,j) element.
References m.
|
inline |
Access by giving the (i,j) element.
References m.
|
inline |
Multiplication operator with another matrix.
References m, and Matrix3x3().
|
inline |
Multiplication operator with a constant.
References m, and Matrix3x3().
|
inline |
Local matrix multiplication.
References m, and Matrix3x3().
|
inline |
Matrix product with a scalar.
References m.
|
inline |
Adition operator.
References m, and Matrix3x3().
|
inline |
Self matrix addition.
References m, and Matrix3x3().
|
inline |
Substraction operator.
References m, and Matrix3x3().
|
inline |
Local matrix subtraction.
References m, and Matrix3x3().
|
inline |
i-th element considering the matrix as an array.
References m.
|
inline |
i-th element considering the matrix as an array.
References m.
|
inline |
Set to identity.
References m.
|
inline |
Set to zero matrix.
References m.
|
inline |
Transposition.
References m, and Matrix3x3().
|
inline |
Transposition.
References m, and Matrix3x3().
T jrlMathTools::Matrix3x3< T >::m[9] |
The data array.
Referenced by CeqthismulB(), determinant(), display(), Fill(), Inversion(), IsIdentity(), operator()(), operator()(), operator*(), operator*(), operator*=(), operator*=(), operator+(), operator+=(), jrlMathTools::Matrix4x4< T >::operator+=(), operator-(), operator-=(), operator[](), operator[](), setIdentity(), setZero(), Transpose(), and Transpose().