Public Member Functions
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 >

List of all members.

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.
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.
int size () const
 Size.
 operator std::vector< std::vector< AT > > ()
 Cast to std::vector<std::vector<AT> >.
const SquareMatrix< Fixed< M >
, AT > 
T () const

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) [inline, explicit]

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

Reimplemented from fmatvec::Matrix< General, Fixed< M >, Fixed< M >, AT >.

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: