This class implement an NxN (dense) matrix. More...
This class implement an NxN (dense) matrix.
Be carefull when you allocate locally it take memory from the stack
| dim | dimensionality |
| T | type of the space |
Definition at line 32 of file Matrix.hpp.
#include <Matrix.hpp>
Public Types | |
| typedef T | coord_type |
|
typedef boost::fusion::vector < T[dim][dim]> | type |
| boost fusion that store the point | |
Public Member Functions | |
| T | get (size_t i, size_t j) const |
| Get coordinate. More... | |
| T & | get (size_t i, size_t j) |
| Get coordinate. More... | |
| Matrix< dim, T > & | operator= (const Matrix< dim, T > &m) |
| operator= between Matrix More... | |
| void | zero () |
| Set to zero the point coordinate. More... | |
| Matrix (const Matrix< dim, T > &&p) | |
| Point constructor from point. More... | |
| Matrix (const Matrix< dim, T > &p) | |
| Point constructor from point. More... | |
| Matrix (const T(&p)[dim][dim]) | |
| Constructor from an array. More... | |
| Matrix () | |
| Default contructor. | |
Static Public Member Functions | |
| static Matrix< dim, T > | identity () |
| Identity matrix. More... | |
Data Fields | |
| type | data |
| structure that store the data of the point | |
Static Public Attributes | |
| static const unsigned int | mat = 0 |
| Property id of the point. | |
| static const unsigned int | max_prop = 1 |
| 1 property | |
| static const unsigned int | dims = dim |
| dimension of the matrix (it is a square matrix) | |
Constructor from an array.
| p | array with the coordinate of the point |
Definition at line 141 of file Matrix.hpp.
|
inline |
Get coordinate.
| i | row |
| j | colums |
Definition at line 55 of file Matrix.hpp.
|
inline |
|
inline |
Set to zero the point coordinate.
Definition at line 93 of file Matrix.hpp.