All Classes Namespaces Functions Typedefs Enumerations Pages
Public Member Functions | List of all members
fmatvec::SquareMatrix< Fixed< M >, AT > Class Template Reference

This is a matrix class of general quadratic matrices. More...

#include <fixed_square_matrix.h>

Inheritance diagram for fmatvec::SquareMatrix< Fixed< M >, AT >:
fmatvec::Matrix< General, Fixed< M >, Fixed< M >, AT >

Public Member Functions

 SquareMatrix (Noinit ini)
 
 SquareMatrix (Init ini=INIT, const AT &a=0)
 
 SquareMatrix (Eye ini, const AT &a=1)
 
 SquareMatrix (int m, Noinit ini)
 
 SquareMatrix (int m, Init ini=INIT, const AT &a=0)
 
 SquareMatrix (int m, Eye ini, const AT &a=1)
 
 SquareMatrix (const char *str)
 
template<class Type , class Row , class Col >
 SquareMatrix (const Matrix< Type, Row, Col, AT > &A)
 Copy Constructor. More...
 
template<class Row >
 SquareMatrix (const SquareMatrix< Row, AT > &A)
 
template<class Type , class Row , class Col >
SquareMatrix< Fixed< M >, AT > & operator= (const Matrix< Type, Row, Col, AT > &A)
 Copy operator. More...
 
int size () const
 Size. More...
 
 operator std::vector< std::vector< AT > > ()
 Cast to std::vector<std::vector<AT> >. More...
 
const SquareMatrix< Fixed< M >
, AT > 
T () const
 
- Public Member Functions inherited from fmatvec::Matrix< General, Fixed< M >, Fixed< M >, AT >
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...
 

Detailed Description

template<int M, class AT>
class fmatvec::SquareMatrix< Fixed< M >, AT >

This is a matrix class of general quadratic matrices.

Template class SquareMatrix with shape type General and atomic type AT. The storage form is dense. The template parameter AT defines the atomic type of the vector. Valid types are int, float, double, complex<float> and complex<double>

Constructor & Destructor Documentation

template<int M, class AT >
template<class Type , class Row , class Col >
fmatvec::SquareMatrix< Fixed< M >, AT >::SquareMatrix ( const Matrix< Type, Row, Col, AT > &  A)
inlineexplicit

Copy Constructor.

See SquareMatrix(const SquareMatrix<AT>&)

Member Function Documentation

template<int M, class AT >
fmatvec::SquareMatrix< Fixed< M >, AT >::operator std::vector< std::vector< AT > > ( )
inline

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

Returns
The std::vector<std::vector<AT> > representation of the matrix
template<int M, class AT >
template<class Type , class Row , class Col >
SquareMatrix<Fixed<M>,AT>& fmatvec::SquareMatrix< Fixed< M >, AT >::operator= ( const Matrix< Type, Row, Col, AT > &  A)
inline

Copy operator.

Copies the matrix given by A.

Parameters
AThe matrix to be copied.
Returns
A reference to the calling matrix.
template<int M, class AT >
int fmatvec::SquareMatrix< Fixed< M >, AT >::size ( ) const
inline

Size.

Returns
The number of rows and columns of the matrix.

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

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML