#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) |
Fill 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 &m) const |
check matrices are equal More... | |
bool | operator!= (const GenericMatrix &m) const |
check matrices are not equal More... | |
Type & | operator() (int row, int col) |
const Type & | operator() (int row, int col) const |
void | setToIdentity () |
Make current matrix to identity. More... | |
bool | isIdentity () const |
Check if matrix is an identity matrix. More... | |
GenericMatrix< cols, rows, Type > | transposed () const |
Return transposed matrix copy. More... | |
int | size () const |
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) |
GenericMatrix & | operator/= (const Type &val) |
GenericMatrix | operator+ (const Type &val) const |
GenericMatrix | operator- (const Type &val) const |
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... | |
Detailed Description
template<int rows, int cols, typename Type = double>
class artec::sdk::base::GenericMatrix< rows, cols, Type >
Definition at line 25 of file GenericMatrix.h.
Member Typedef Documentation
typedef Type artec::sdk::base::GenericMatrix< rows, cols, Type >::value_type |
Definition at line 28 of file GenericMatrix.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 30 of file GenericMatrix.h.
|
inlineexplicit |
Definition at line 33 of file GenericMatrix.h.
|
inline |
Definition at line 42 of file GenericMatrix.h.
|
inline |
Copying constructor.
Definition at line 57 of file GenericMatrix.h.
|
inlineexplicit |
Copying constructor with type conversion.
Definition at line 61 of file GenericMatrix.h.
|
inlineexplicit |
Copying constructor with size conversion.
Definition at line 68 of file GenericMatrix.h.
Member Function Documentation
|
inline |
Fill matrix with value.
Definition at line 96 of file GenericMatrix.h.
|
static |
Identity matrix.
Definition at line 313 of file GenericMatrix.h.
|
inline |
Check if matrix is an identity matrix.
Definition at line 247 of file GenericMatrix.h.
|
inline |
Conversion to plain data pointer operator
Definition at line 272 of file GenericMatrix.h.
|
inline |
Conversion to plain data pointer operator
Definition at line 271 of file GenericMatrix.h.
|
inline |
check matrices are not equal
Definition at line 220 of file GenericMatrix.h.
|
inline |
Definition at line 225 of file GenericMatrix.h.
|
inline |
Definition at line 230 of file GenericMatrix.h.
|
inline |
Matrix - matrix multiplication.
Definition at line 138 of file GenericMatrix.h.
|
inline |
Matrix - Scalar
Definition at line 188 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 165 of file GenericMatrix.h.
|
inline |
Arithmetical operations Matrix - Matrix (element-wise)
Definition at line 121 of file GenericMatrix.h.
|
inline |
Matrix - Scalar
Definition at line 176 of file GenericMatrix.h.
|
inline |
Arithmetical operations Matrix - Matrix (element-wise)
Definition at line 105 of file GenericMatrix.h.
|
inline |
Matrix - Scalar
Definition at line 155 of file GenericMatrix.h.
|
inline |
Arithmetical operations Matrix - Matrix (element-wise)
Definition at line 128 of file GenericMatrix.h.
|
inline |
Matrix - Scalar
Definition at line 182 of file GenericMatrix.h.
|
inline |
Unary minus.
Definition at line 203 of file GenericMatrix.h.
|
inline |
Arithmetical operations Matrix - Matrix (element-wise)
Definition at line 110 of file GenericMatrix.h.
|
inline |
Matrix - Scalar
Definition at line 160 of file GenericMatrix.h.
|
inline |
Matrix - Scalar
Definition at line 194 of file GenericMatrix.h.
|
inline |
Matrix - Scalar
Definition at line 170 of file GenericMatrix.h.
|
inline |
Assignment operators
Definition at line 73 of file GenericMatrix.h.
|
inline |
Assignment operators
Definition at line 88 of file GenericMatrix.h.
|
inline |
check matrices are equal
Definition at line 211 of file GenericMatrix.h.
|
inline |
Make current matrix to identity.
Definition at line 238 of file GenericMatrix.h.
|
inline |
Returns the number of elements in the matrix
Definition at line 275 of file GenericMatrix.h.
|
inline |
Return transposed matrix copy.
Definition at line 259 of file GenericMatrix.h.
Member Data Documentation
union { ... } |
matrix data
Type artec::sdk::base::GenericMatrix< rows, cols, Type >::data[rows *cols] |
Definition at line 285 of file GenericMatrix.h.
Type artec::sdk::base::GenericMatrix< rows, cols, Type >::m[rows][cols] |
Definition at line 282 of file GenericMatrix.h.
The documentation for this class was generated from the following file:
- artec/sdk/base/GenericMatrix.h