|
latest version v1.9 - last update 10 Apr 2010 |
|
triMatrix is a very simple class to optimize memory usage when using an square triangular matrix with following form: More...
#include <ltiTriMatrix.h>


Public Types | |
| typedef T | value_type |
| typedef int | size_type |
Public Member Functions | |
| triMatrix () | |
| triMatrix (const int y) | |
| triMatrix (const triMatrix< T > &x) | |
| virtual | ~triMatrix () |
| T & | at (const int y, const int x) |
| const T & | at (const int y, const int x) const |
| T * | operator[] (const int y) |
| const T * | operator[] (const int y) const |
| triMatrix< T > & | operator= (const triMatrix< T > &x) |
| triMatrix< T > & | copy (const triMatrix< T > &x) |
| int | size () const |
| virtual const char * | getTypeName () const |
| virtual mathObject * | clone () const |
| virtual bool | write (ioHandler &handler, const bool complete=true) const |
| virtual bool | read (ioHandler &handler, const bool complete=true) |
Protected Attributes | |
| T * | mem |
| T ** | rows |
| int | dimension |
triMatrix is a very simple class to optimize memory usage when using an square triangular matrix with following form:
x x x x x x
x x x x x
x x x x
x x x
x x
x
| typedef int lti::triMatrix< T >::size_type |
return type of the size() member
| typedef T lti::triMatrix< T >::value_type |
type of the contained data
| lti::triMatrix< T >::triMatrix | ( | ) |
default constructor
| lti::triMatrix< T >::triMatrix | ( | const int | y | ) |
| lti::triMatrix< T >::triMatrix | ( | const triMatrix< T > & | x | ) |
copy constructor
| virtual lti::triMatrix< T >::~triMatrix | ( | ) | [virtual] |
destructor
| const T& lti::triMatrix< T >::at | ( | const int | y, | |
| const int | x | |||
| ) | const |
read-only access operator.
| y | which row | |
| x | which column |
| T& lti::triMatrix< T >::at | ( | const int | y, | |
| const int | x | |||
| ) |
read/write access operator.
| y | which row | |
| x | which column |
| virtual mathObject* lti::triMatrix< T >::clone | ( | ) | const [virtual] |
returns a copy of this object
Implements lti::mathObject.
| triMatrix<T>& lti::triMatrix< T >::copy | ( | const triMatrix< T > & | x | ) |
copy the other matrix
Reimplemented from lti::ioObject.
| virtual const char* lti::triMatrix< T >::getTypeName | ( | void | ) | const [inline, virtual] |
returns the name of this class
Reimplemented from lti::mathObject.
| triMatrix<T>& lti::triMatrix< T >::operator= | ( | const triMatrix< T > & | x | ) |
copy the other matrix
Reimplemented from lti::ioObject.
| const T* lti::triMatrix< T >::operator[] | ( | const int | y | ) | const |
return a pointer to the begin of the given row
| T* lti::triMatrix< T >::operator[] | ( | const int | y | ) |
return a pointer to the begin of the given row
| virtual bool lti::triMatrix< T >::read | ( | ioHandler & | handler, | |
| const bool | complete = true | |||
| ) | [virtual] |
read the object from the given ioHandler
Reimplemented from lti::mathObject.
| int lti::triMatrix< T >::size | ( | ) | const [inline] |
return the number of rows (or columns) of this matrix
| virtual bool lti::triMatrix< T >::write | ( | ioHandler & | handler, | |
| const bool | complete = true | |||
| ) | const [virtual] |
write the object in the given ioHandler
Reimplemented from lti::mathObject.
int lti::triMatrix< T >::dimension [protected] |
the dimension of the matrix
Referenced by lti::triMatrix< int >::size().
T* lti::triMatrix< T >::mem [protected] |
the data of the matrix
T** lti::triMatrix< T >::rows [protected] |
the pointers to the rows of the matrix