Artec 3D Scanning SDK
2.0
|
Matrix of unspecified size. More...
#include <artec/sdk/base/GenericMatrix.h>
Public Types | |
typedef Type | value_type |
Public Member Functions | |
GenericMatrix () | |
template<typename Type2 , std::size_t sizeOfArray> | |
GenericMatrix (const Type2(&values)[sizeOfArray]) | |
template<typename Type2 > | |
GenericMatrix (const Type2 *values, int rows2, int cols2) | |
GenericMatrix (const GenericMatrix &second) | |
Copying constructor. More... | |
template<typename Type2 > | |
GenericMatrix (const GenericMatrix< rows, cols, Type2 > &second) | |
Copying constructor with type conversion. More... | |
template<int rows2, int cols2, typename Type2 > | |
GenericMatrix (const GenericMatrix< rows2, cols2, Type2 > &second) | |
Copying constructor with size conversion. More... | |
void | fill (const Type &value) |
Populate matrix with value. More... | |
template<int cols2> | |
GenericMatrix< rows, cols2, Type > | operator* (const GenericMatrix< cols, cols2, Type > &mat) const |
Matrix-matrix multiplication. More... | |
GenericMatrix | operator- () const |
Unary minus. More... | |
bool | operator== (const GenericMatrix &other) const |
Check whether the matrices are equal. More... | |
bool | operator!= (const GenericMatrix &m) const |
Check matrices whether the are not equal. More... | |
Type & | operator() (int row, int col) |
const Type & | operator() (int row, int col) const |
void | setToIdentity () |
Convert current matrix to identity one. More... | |
bool | isIdentity () const |
Check whether the matrix is an identity one. More... | |
GenericMatrix< cols, rows, Type > | transposed () const |
Return transposed matrix copy. More... | |
int | size () const |
Return the number of elements in the matrix. More... | |
template<int rows2, int cols2> | |
GenericMatrix & | operator= (const GenericMatrix< rows2, cols2, Type > &second) |
GenericMatrix & | operator= (const GenericMatrix &second) |
GenericMatrix & | operator+= (const GenericMatrix &mat) |
GenericMatrix & | operator-= (const GenericMatrix &mat) |
GenericMatrix & | operator*= (const GenericMatrix &other) |
GenericMatrix | operator+ (const GenericMatrix &mat) const |
GenericMatrix | operator- (const GenericMatrix &mat) const |
GenericMatrix & | operator*= (const Type &val) |
GenericMatrix & | operator/= (const Type &val) |
GenericMatrix | operator* (const Type &val) const |
GenericMatrix | operator/ (const Type &val) const |
operator Type * () | |
operator const Type * () const | |
Static Public Member Functions | |
static GenericMatrix< rows, cols, Type > | identity () |
Identity matrix. More... | |
Public Attributes | |
union { | |
struct { | |
Type m [rows][cols] | |
} | |
Type data [rows *cols] | |
}; | |
Matrix data. More... | |
Matrix of unspecified size.
Definition at line 30 of file GenericMatrix.h.
typedef Type artec::sdk::base::GenericMatrix< rows, cols, Type >::value_type |
Definition at line 33 of file GenericMatrix.h.
|
inline |
Definition at line 35 of file GenericMatrix.h.
|
inlineexplicit |
Definition at line 38 of file GenericMatrix.h.
|
inline |
Definition at line 47 of file GenericMatrix.h.
|
inline |
Copying constructor.
Definition at line 62 of file GenericMatrix.h.
|
inlineexplicit |
Copying constructor with type conversion.
Definition at line 66 of file GenericMatrix.h.
|
inlineexplicit |
Copying constructor with size conversion.
Definition at line 73 of file GenericMatrix.h.
|
inline |
Populate matrix with value.
Definition at line 101 of file GenericMatrix.h.
|
static |
Identity matrix.
Definition at line 296 of file GenericMatrix.h.
|
inline |
Check whether the matrix is an identity one.
Definition at line 230 of file GenericMatrix.h.
|
inline |
Conversion to plain data pointer operator
Definition at line 255 of file GenericMatrix.h.
|
inline |
Conversion to plain data pointer operator
Definition at line 254 of file GenericMatrix.h.
|
inline |
Check matrices whether the are not equal.
Definition at line 203 of file GenericMatrix.h.
|
inline |
Definition at line 208 of file GenericMatrix.h.
|
inline |
Definition at line 213 of file GenericMatrix.h.
|
inline |
Matrix-matrix multiplication.
Definition at line 143 of file GenericMatrix.h.
|
inline |
Matrix-Scalar
Definition at line 171 of file GenericMatrix.h.
|
inline |
Arithmetical operations Matrix-Matrix (element-wise)
Definition at line 120 of file GenericMatrix.h.
|
inline |
Matrix-Scalar
Definition at line 160 of file GenericMatrix.h.
|
inline |
Arithmetical operations Matrix-Matrix (element-wise)
Definition at line 126 of file GenericMatrix.h.
|
inline |
Arithmetical operations Matrix-Matrix (element-wise)
Definition at line 110 of file GenericMatrix.h.
|
inline |
Arithmetical operations Matrix-Matrix (element-wise)
Definition at line 133 of file GenericMatrix.h.
|
inline |
Unary minus.
Definition at line 186 of file GenericMatrix.h.
|
inline |
Arithmetical operations Matrix-Matrix (element-wise)
Definition at line 115 of file GenericMatrix.h.
|
inline |
Matrix-Scalar
Definition at line 177 of file GenericMatrix.h.
|
inline |
Matrix-Scalar
Definition at line 165 of file GenericMatrix.h.
|
inline |
Assignment operators
Definition at line 78 of file GenericMatrix.h.
|
inline |
Assignment operators
Definition at line 93 of file GenericMatrix.h.
|
inline |
Check whether the matrices are equal.
Definition at line 194 of file GenericMatrix.h.
|
inline |
Convert current matrix to identity one.
Definition at line 221 of file GenericMatrix.h.
|
inline |
Return the number of elements in the matrix.
Definition at line 258 of file GenericMatrix.h.
|
inline |
Return transposed matrix copy.
Definition at line 242 of file GenericMatrix.h.
union { ... } |
Matrix data.
Type artec::sdk::base::GenericMatrix< rows, cols, Type >::data[rows *cols] |
Definition at line 268 of file GenericMatrix.h.
Type artec::sdk::base::GenericMatrix< rows, cols, Type >::m[rows][cols] |
Definition at line 265 of file GenericMatrix.h.