clipper
|
Implements a simple matrix that can be filled using a functional object. More...
Public Member Functions | |
Matrix (unsigned int rows, unsigned int cols) | |
unsigned int | cols () const |
unsigned int | rows () const |
Numeric & | at (unsigned int row, unsigned int col) |
Return value at a position of the matrix. | |
const Numeric & | at (unsigned int row, unsigned int col) const |
Return value at a position of the matrix. | |
template<typename Functional > | |
Matrix & | fill (Functional func) |
Fill in whole matrix from a function calculating values. | |
std::string | toString () const |
Return the matrix as a latex pmatrix math string. | |
Private Attributes | |
unsigned int | m_cols |
number of columns in the matrix | |
std::vector< Numeric > | m_data |
matrix data |
Implements a simple matrix that can be filled using a functional object.
Definition at line 1492 of file clipper.cc.
Matrix< Numeric >::Matrix | ( | unsigned int | rows, |
unsigned int | cols | ||
) | [inline] |
Definition at line 1504 of file clipper.cc.
Numeric& Matrix< Numeric >::at | ( | unsigned int | row, |
unsigned int | col | ||
) | [inline] |
Return value at a position of the matrix.
Definition at line 1521 of file clipper.cc.
const Numeric& Matrix< Numeric >::at | ( | unsigned int | row, |
unsigned int | col | ||
) | const [inline] |
Return value at a position of the matrix.
Definition at line 1529 of file clipper.cc.
Definition at line 1510 of file clipper.cc.
Matrix& Matrix< Numeric >::fill | ( | Functional | func | ) | [inline] |
Fill in whole matrix from a function calculating values.
Definition at line 1538 of file clipper.cc.
Definition at line 1515 of file clipper.cc.
Return the matrix as a latex pmatrix math string.
Definition at line 1548 of file clipper.cc.
number of columns in the matrix
Definition at line 1497 of file clipper.cc.
matrix data
Definition at line 1500 of file clipper.cc.