clipper
Public Member Functions | Private Attributes
Matrix< Numeric > Class Template Reference

Implements a simple matrix that can be filled using a functional object. More...

List of all members.

Public Member Functions

 Matrix (unsigned int rows, unsigned int cols)
unsigned int cols () const
unsigned int rows () const
Numeric & at (unsigned int row, unsigned int col)
 Return value at a position of the matrix.
const Numeric & at (unsigned int row, unsigned int col) const
 Return value at a position of the matrix.
template<typename Functional >
Matrixfill (Functional func)
 Fill in whole matrix from a function calculating values.
std::string toString () const
 Return the matrix as a latex pmatrix math string.

Private Attributes

unsigned int m_cols
 number of columns in the matrix
std::vector< Numeric > m_data
 matrix data

Detailed Description

template<typename Numeric>
class Matrix< Numeric >

Implements a simple matrix that can be filled using a functional object.

Definition at line 1492 of file clipper.cc.


Constructor & Destructor Documentation

template<typename Numeric>
Matrix< Numeric >::Matrix ( unsigned int  rows,
unsigned int  cols 
) [inline]

Definition at line 1504 of file clipper.cc.


Member Function Documentation

template<typename Numeric>
Numeric& Matrix< Numeric >::at ( unsigned int  row,
unsigned int  col 
) [inline]

Return value at a position of the matrix.

Definition at line 1521 of file clipper.cc.

template<typename Numeric>
const Numeric& Matrix< Numeric >::at ( unsigned int  row,
unsigned int  col 
) const [inline]

Return value at a position of the matrix.

Definition at line 1529 of file clipper.cc.

template<typename Numeric>
unsigned int Matrix< Numeric >::cols ( ) const [inline]

Definition at line 1510 of file clipper.cc.

template<typename Numeric>
template<typename Functional >
Matrix& Matrix< Numeric >::fill ( Functional  func) [inline]

Fill in whole matrix from a function calculating values.

Definition at line 1538 of file clipper.cc.

template<typename Numeric>
unsigned int Matrix< Numeric >::rows ( ) const [inline]

Definition at line 1515 of file clipper.cc.

template<typename Numeric>
std::string Matrix< Numeric >::toString ( ) const [inline]

Return the matrix as a latex pmatrix math string.

Definition at line 1548 of file clipper.cc.


Member Data Documentation

template<typename Numeric>
unsigned int Matrix< Numeric >::m_cols [private]

number of columns in the matrix

Definition at line 1497 of file clipper.cc.

template<typename Numeric>
std::vector<Numeric> Matrix< Numeric >::m_data [private]

matrix data

Definition at line 1500 of file clipper.cc.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Friends Defines