Public Member Functions
fmatvec::Matrix< Type, Row, Col, AT > Class Template Reference

This is the basic matrix class for arbitrary matrices. More...

#include <matrix.h>

List of all members.

Public Member Functions

AT & operator() (int i, int j)
 Standard constructor.
const AT & operator() (int i, int j) const
 Element operator.
AT & e (int i, int j)
const AT & e (int i, int j) const
int rows () const
 Number of rows.
int cols () const
 Number of columns.
 operator std::vector< std::vector< AT > > ()
 Cast to std::vector<std::vector<AT> >.

Detailed Description

template<class Type, class Row, class Col, class AT>
class fmatvec::Matrix< Type, Row, Col, AT >

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>


Member Function Documentation

template<class Type, class Row, class Col, class AT>
int fmatvec::Matrix< Type, Row, Col, AT >::cols ( ) const
template<class Type , class Row , class Col , class AT >
fmatvec::Matrix< Type, Row, Col, AT >::operator std::vector< std::vector< AT > > ( )

Cast to std::vector<std::vector<AT> >.

Returns:
The std::vector<std::vector<AT> > representation of the matrix

Reimplemented in fmatvec::SquareMatrix< Fixed< M >, AT >.

template<class Type, class Row, class Col, class AT>
AT& fmatvec::Matrix< Type, Row, Col, AT >::operator() ( int  i,
int  j 
) [inline]

Standard constructor.

The standard constructor.

Parameters:
mThe number of rows
nThe number of columns

Element operator

Returns a reference to the element in the i-th row and the j-th column.

Parameters:
iThe i-th row of the matrix
jThe j-th column of the matrix
Returns:
A reference to the element A(i,j).
See also:
operator()(int,int) const

Referenced by fmatvec::Matrix< General, Ref, Ref, AT >::operator()(), and fmatvec::Matrix< Symmetric, Ref, Ref, AT >::operator()().

template<class Type, class Row, class Col, class AT>
const AT& fmatvec::Matrix< Type, Row, Col, AT >::operator() ( int  i,
int  j 
) const [inline]

Element operator.

See operator()(int,int)

template<class Type, class Row, class Col, class AT>
int fmatvec::Matrix< Type, Row, Col, AT >::rows ( ) const

The documentation for this class was generated from the following file: