This is the basic matrix class for arbitrary matrices. More...
#include <matrix.h>
Public Member Functions | |
AT & | operator() (int i, int j) |
Standard constructor. More... | |
const AT & | operator() (int i, int j) const |
Element operator. More... | |
AT & | e (int i, int j) |
const AT & | e (int i, int j) const |
int | rows () const |
Number of rows. More... | |
int | cols () const |
Number of columns. More... | |
operator std::vector< std::vector< AT > > () | |
Cast to std::vector<std::vector<AT> >. More... | |
This is the basic matrix class for arbitrary matrices.
Enumerate for initialization of matrices
Template class Matrix with shape type ST and atomic type AT. The first template parameter defines the shape type, the second parameter the atomic type of the matrix. Valid shape types are General, Symmetric, GeneralBand, Diagonal and Sparse. Valid atomic types are int, float, double, complex<float> and complex<double>
int fmatvec::Matrix< Type, Row, Col, AT >::cols | ( | ) | const |
Number of columns.
fmatvec::Matrix< Type, Row, Col, AT >::operator std::vector< std::vector< AT > > | ( | ) |
Cast to std::vector<std::vector<AT> >.
|
inline |
Standard constructor.
The standard constructor.
m | The number of rows |
n | The number of columns |
Element operator
Returns a reference to the element in the i-th row and the j-th column.
i | The i-th row of the matrix |
j | The j-th column of the matrix |
|
inline |
Element operator.
int fmatvec::Matrix< Type, Row, Col, AT >::rows | ( | ) | const |
Number of rows.