Public Member Functions
fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT > Class Template Reference

This is a matrix class for symmetric matrices. More...

#include <fixed_symmetric_matrix.h>

List of all members.

Public Member Functions

 Matrix (Noinit ini)
 Matrix (Init ini=INIT, const AT &a=0)
 Matrix (Eye ini, const AT &a=1)
 Matrix (int m, int n, Noinit ini)
 Matrix (int m, int n, Init ini, const AT &a=0)
 Matrix (int m, int n, Eye ini, const AT &a=1)
 Matrix (const Matrix< General, Fixed< M >, Fixed< M >, AT > &A)
template<class Row >
 Matrix (const Matrix< Symmetric, Row, Row, AT > &A)
template<class Type , class Row , class Col >
 Matrix (const Matrix< Type, Row, Col, AT > &A)
AT & operator() (int i, int j)
 Element operator.
const AT & operator() (int i, int j) const
 Element operator.
AT & ei (int i, int j)
const AT & ei (int i, int j) const
AT & ej (int i, int j)
const AT & ej (int i, int j) const
AT & e (int i, int j)
const AT & e (int i, int j) const
AT * operator() ()
 Pointer operator.
const AT * operator() () const
 Pointer operator.
int size () const
 Size.
int rows () const
 Number of rows.
int cols () const
 Number of columns.
int ldim () const
 Leading dimension.
const CBLAS_ORDER blasOrder () const
 Storage convention.
const CBLAS_UPLO blasUplo () const
 Symmetry convention.
Matrix< Symmetric, Fixed< M >
, Fixed< M >, AT > & 
init (const AT &a=0)
 Initialization.
Matrix< Symmetric, Fixed< M >
, Fixed< M >, AT > & 
init (Init, const AT &a=0)
Matrix< Symmetric, Fixed< M >
, Fixed< M >, AT > & 
init (Eye, const AT &a=1)
Matrix< Symmetric, Fixed< M >
, Fixed< M >, AT > & 
init (Noinit, const AT &a=0)
 operator std::vector< std::vector< AT > > ()
 Cast to std::vector<std::vector<AT> >.

Detailed Description

template<int M, class AT>
class fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >

This is a matrix class for symmetric matrices.

Template class Matrix of shape type SymmetricFixed. The template parameter AT defines the atomic type of the matrix. Valid types are int, float, double, complex<float> and complex<double>


Member Function Documentation

template<int M, class AT >
const CBLAS_ORDER fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::blasOrder ( ) const [inline]

Storage convention.

Returns the blas-conform storage convention. The elements are stored in columnmajor form, i.e. the elements are stored columnwise.

Returns:
CblasColMajor.
template<int M, class AT >
const CBLAS_UPLO fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::blasUplo ( ) const [inline]

Symmetry convention.

Returns the blas-conform symmetry convention. The elements are stored in the lower triangular part of the array,

Returns:
CblasLower.
template<int M, class AT >
int fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::cols ( ) const [inline]

Number of columns.

Returns:
The number of columns of the matrix
template<int M, class AT >
Matrix< Symmetric, Fixed< M >, Fixed< M >, AT > & fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::init ( const AT &  a = 0) [inline]

Initialization.

Initializes all elements of the calling matrix with the value given by a.

Parameters:
aValue all elements will be initialized with.
Returns:
A reference to the calling matrix.
template<int M, class AT >
int fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::ldim ( ) const [inline]

Leading dimension.

Returns:
The leading dimension of the matrix
template<int M, class AT >
fmatvec::Matrix< Symmetric, Fixed< M >, 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 >
AT& fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::operator() ( int  i,
int  j 
) [inline]

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).
Remarks:
The bounds are checked by default. To change this behavior, define FMATVEC_NO_BOUNDS_CHECK.
See also:
operator()(int,int) const
template<int M, class AT >
const AT& fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::operator() ( int  i,
int  j 
) const [inline]

Element operator.

See operator()(int,int)

template<int M, class AT >
AT* fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::operator() ( ) [inline]

Pointer operator.

Returns the pointer to the first element.

Returns:
The pointer to the first element.
template<int M, class AT >
const AT* fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::operator() ( ) const [inline]

Pointer operator.

See operator()()

template<int M, class AT >
int fmatvec::Matrix< Symmetric, Fixed< M >, Fixed< M >, AT >::rows ( ) const [inline]

Number of rows.

Returns:
The number of rows of the matrix
template<int M, class AT >
int fmatvec::Matrix< Symmetric, Fixed< M >, 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: