|
MeVisLab Toolbox Reference
|
Declaration of matrix type traits. More...
#include <mlMatrix2.h>
Public Types | |
| typedef DT | ComponentType |
| A typedef to 'export' the type of components. | |
| Public Types inherited from ml::FloatingPointMatrix< Tvec2< DT >, 2 > | |
| enum | |
| enum | |
| enum | |
| typedef Tvec2< DT >::ComponentType | ComponentType |
| A typedef to 'export' the type of subcomponents. | |
| typedef Tvec2< DT > | VectorType |
| A typedef to 'export' the type of component vector. | |
Public Member Functions | |
| bool | operator< (const Tmat2< DT > &) const |
Operators and indexing functionality. | |
| const Tmat2< DT > & | operator= (const Tmat2< DT > &m) |
| Assigns from a Tmat2. | |
| const Tmat2< DT > & | operator+= (const Tmat2< DT > &m) |
| Increments by a Tmat2. | |
| const Tmat2< DT > & | operator-= (const Tmat2< DT > &m) |
| Decrements by a Tmat2. | |
| const Tmat2< DT > & | operator*= (const DT d) |
Multiplies by a constant d. | |
| const Tmat2< DT > & | operator/= (const DT d) |
Divides by a constant d. Division by zero is not handled and must be avoided by caller. | |
Special functions for class Tmat2. | |
| DT | det () const |
| Returns the determinant of this matrix. | |
| Tmat2< DT > | transpose () const |
| Returns the transposed matrix. | |
| Tmat2< DT > | inverse (bool *isInvertible=nullptr) const |
| const Tmat2< DT > & | apply (MLDblFuncPtr fct) |
Applies the method fct to all vectors of *this and returns the matrix. | |
| Public Member Functions inherited from ml::FloatingPointMatrix< Tvec2< DT >, 2 > | |
| const Tvec2< DT > & | operator[] (const size_t i) const |
| ComponentType & | linearIndexed (const size_t idx) |
| ComponentType | linearIndexedConst (const size_t idx) const |
| ComponentType | compAbsSum () const |
| void | setValuesFromPtr (const ComponentType *const values) |
| void | getValuesToPtr (ComponentType *values) const |
Constructors, set, and get methods. | |
| Tmat2 () | |
| Constructs the matrix from four zero elements. | |
| Tmat2 (const DT diagValue) | |
Constructs the matrix that has the argument diagValue as the diagonal values, zero otherwise. | |
| Tmat2 (const Tvec2< DT > &row0, const Tvec2< DT > &row1) | |
Composes a matrix from the two vectors row0 and row1. | |
| Tmat2 (const Tmat2< DT > &mat) | |
Copy constructor from the Tmat2 mat. | |
| Tmat2 (const float mat[4]) | |
Constructor from four floating point values in an array given by mat, row by row. | |
| Tmat2 (const double mat[4]) | |
Constructor from four double values in an array given by mat, row by row. | |
| Tmat2 (const DT in00, const DT in01, const DT in10, const DT in11) | |
| Initializes all matrix elements explicitly with scalars, row by row. | |
| void | setValues (const float mat[4]) |
Copies the contents of mat into *this, row by row. | |
| void | getValues (float mat[4]) const |
| void | setValues (const double mat[4]) |
Copies the contents of mat into *this, row by row. | |
| void | getValues (double mat[4]) const |
| void | set (const DT val) |
Sets all values to val. | |
| void | setScaleMatrix (const DT scale) |
Sets a diagonal matrix with scale on the diagonal. | |
| static Tmat2< DT > | getMat (const DT val) |
Returns a matrix filled with values val. | |
| static Tmat2< DT > | getIdentity () |
| Returns the identity matrix. | |
Additional Inherited Members | |
| Protected Attributes inherited from ml::FloatingPointMatrix< Tvec2< DT >, 2 > | |
| Tvec2< DT > | v [size] |
| The rows constituting the matrix. | |
Declaration of matrix type traits.
A 2x2 matrix class consisting of two row vectors.
Definition at line 34 of file mlMatrix2.h.
| typedef DT ml::Tmat2< DT >::ComponentType |
A typedef to 'export' the type of components.
Definition at line 39 of file mlMatrix2.h.
|
inline |
Constructs the matrix from four zero elements.
Definition at line 149 of file mlMatrix2.h.
References Tmat2(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by apply(), getIdentity(), getMat(), inverse(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), Tmat2(), Tmat2(), Tmat2(), Tmat2(), Tmat2(), Tmat2(), Tmat2(), and transpose().
|
inline |
Constructs the matrix that has the argument diagValue as the diagonal values, zero otherwise.
Definition at line 156 of file mlMatrix2.h.
References Tmat2(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
|
inline |
Composes a matrix from the two vectors row0 and row1.
Definition at line 165 of file mlMatrix2.h.
References Tmat2(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
|
inline |
Copy constructor from the Tmat2 mat.
Definition at line 174 of file mlMatrix2.h.
References Tmat2(), ml::FloatingPointMatrix< VectorT, size >::v, and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
|
inline |
Constructor from four floating point values in an array given by mat, row by row.
Definition at line 182 of file mlMatrix2.h.
References setValues(), and Tmat2().
|
inline |
Constructor from four double values in an array given by mat, row by row.
Definition at line 189 of file mlMatrix2.h.
References setValues(), and Tmat2().
|
inline |
Initializes all matrix elements explicitly with scalars, row by row.
Definition at line 196 of file mlMatrix2.h.
References Tmat2(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
|
inline |
Applies the method fct to all vectors of *this and returns the matrix.
Definition at line 294 of file mlMatrix2.h.
References apply(), Tmat2(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by apply().
|
inline |
Returns the determinant of this matrix.
Definition at line 279 of file mlMatrix2.h.
References det(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Returns the identity matrix.
Definition at line 256 of file mlMatrix2.h.
References getIdentity(), and Tmat2().
Referenced by getIdentity(), and inverse().
Returns a matrix filled with values val.
Definition at line 241 of file mlMatrix2.h.
References getMat(), and Tmat2().
Referenced by getMat().
|
inline |
Copies the contents of *this into mat, row by row. Note that range and precision of the float values may not be sufficient for the double matrix contents.
Definition at line 233 of file mlMatrix2.h.
References getValues(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
|
inline |
Copies the contents of *this into mat, row by row. Note that range and precision of the float values may not be sufficient for the double matrix contents.
Definition at line 223 of file mlMatrix2.h.
References getValues(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by getValues(), and getValues().
Definition at line 311 of file mlMatrix2.h.
References det(), getIdentity(), inverse(), ML_BAD_PARAMETER, MLValueIs0WOM(), ml::printTemplateError(), Tmat2(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by inverse().
Multiplies by a constant d.
Definition at line 385 of file mlMatrix2.h.
References operator*=(), Tmat2(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by operator*=().
Increments by a Tmat2.
Definition at line 367 of file mlMatrix2.h.
References operator+=(), Tmat2(), ml::FloatingPointMatrix< VectorT, size >::v, and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by operator+=().
Decrements by a Tmat2.
Definition at line 376 of file mlMatrix2.h.
References operator-=(), Tmat2(), ml::FloatingPointMatrix< VectorT, size >::v, and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by operator-=().
Divides by a constant d. Division by zero is not handled and must be avoided by caller.
Definition at line 394 of file mlMatrix2.h.
References operator/=(), Tmat2(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by operator/=().
Dummy 'lesser than operator' that always returns false. It is needed to make class work with some STL containers on VC7.
Definition at line 100 of file mlMatrix2.h.
Assigns from a Tmat2.
Definition at line 356 of file mlMatrix2.h.
References operator=(), Tmat2(), ml::FloatingPointMatrix< VectorT, size >::v, and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by operator=().
|
inline |
Sets all values to val.
Definition at line 249 of file mlMatrix2.h.
References set(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by set().
|
inline |
Sets a diagonal matrix with scale on the diagonal.
Definition at line 263 of file mlMatrix2.h.
References setScaleMatrix(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by setScaleMatrix().
|
inline |
Copies the contents of mat into *this, row by row.
Definition at line 213 of file mlMatrix2.h.
References setValues(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
|
inline |
Copies the contents of mat into *this, row by row.
Definition at line 205 of file mlMatrix2.h.
References setValues(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by setValues(), setValues(), Tmat2(), and Tmat2().
Returns the transposed matrix.
Definition at line 286 of file mlMatrix2.h.
References Tmat2(), transpose(), and ml::FloatingPointMatrix< Tvec2< DT >, 2 >::v.
Referenced by ml::operator*(), and transpose().