![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Base class for all two-dimensional sparse matrixes. More...
#include <mdsSparseMatrixBase.h>

Public Types | |
| typedef CSparseMatrixTraits< M > ::tElement | tElement |
| Element type. | |
| typedef M | tMatrix |
| Matrix type. | |
Public Member Functions | |
| tElement & | at (tSize row, tSize col) |
| Method returns reference to the element at (row, col). | |
| const tElement | at (tSize row, tSize col) const |
| Method returns element (by value) at (row, col). | |
| tSize | cols () const |
| template<class Function > | |
| Function | forEach (Function Func) const |
| Calls a function object for every matrix element. | |
| template<class Function > | |
| Function | forEachRef (Function Func) |
| Calls a function object for every non-dominant matrix element. | |
| tElement | getDominant () const |
| Returns the matrix dominant value. | |
| tMatrix & | getImpl () |
| Returns reference to the matrix implementation. | |
| const tMatrix & | getImpl () const |
| tSize | getNumOfCols () const |
| tSize | getNumOfRows () const |
| Returns the matrix size (dimensions). | |
| tElement & | operator() (tSize row, tSize col) |
| Method returns reference to the element at (row, col). | |
| const tElement | operator() (tSize row, tSize col) const |
| Method returns element (by value) at (row, col). | |
| template<class Function > | |
| Function | pforEach (Function Func) const |
| Calls a function object for every matrix element. | |
| template<class Function > | |
| Function | pforEachRef (Function Func) |
| Calls a function object for every non-dominant matrix element. | |
| tSize | rows () const |
| Returns the matrix size (dimensions). | |
| tMatrix & | set (tSize row, tSize col, const tElement &Value) |
| Method sets value of element at (row, col). | |
Protected Member Functions | |
| CSparseMatrixBase () | |
| Default constructor. | |
| CSparseMatrixBase (const CSparseMatrixBase &) | |
| Copy constructor. | |
| CSparseMatrixBase & | operator= (const CSparseMatrixBase &) |
| Assignment operator. | |
Base class for all two-dimensional sparse matrixes.
| typedef CSparseMatrixTraits<M>::tElement mds::math::CSparseMatrixBase< M >::tElement |
Element type.
Reimplemented in mds::math::CSparseMatrixAlt< T >, and mds::math::CSparseMatrix< T >.
| typedef M mds::math::CSparseMatrixBase< M >::tMatrix |
Matrix type.
| mds::math::CSparseMatrixBase< M >::CSparseMatrixBase | ( | ) | [protected] |
Default constructor.
| mds::math::CSparseMatrixBase< M >::CSparseMatrixBase | ( | const CSparseMatrixBase< M > & | ) | [protected] |
Copy constructor.
| tElement& mds::math::CSparseMatrixBase< M >::at | ( | tSize | row, |
| tSize | col | ||
| ) |
Method returns reference to the element at (row, col).
| const tElement mds::math::CSparseMatrixBase< M >::at | ( | tSize | row, |
| tSize | col | ||
| ) | const |
Method returns element (by value) at (row, col).
Reimplemented in mds::math::CSparseMatrixAlt< T >, and mds::math::CSparseMatrix< T >.
| tSize mds::math::CSparseMatrixBase< M >::cols | ( | ) | const |
Reimplemented in mds::math::CSparseMatrixAlt< T >, and mds::math::CSparseMatrix< T >.
| Function mds::math::CSparseMatrixBase< M >::forEach | ( | Function | Func | ) | const |
Calls a function object for every matrix element.
Reimplemented in mds::math::CSparseMatrixAlt< T >, mds::math::CSparseMatrix< T >, mds::math::CSparseMatrixAlt< T >, and mds::math::CSparseMatrix< T >.
| Function mds::math::CSparseMatrixBase< M >::forEachRef | ( | Function | Func | ) |
Calls a function object for every non-dominant matrix element.
Reimplemented in mds::math::CSparseMatrixAlt< T >, mds::math::CSparseMatrix< T >, mds::math::CSparseMatrixAlt< T >, and mds::math::CSparseMatrix< T >.
| tElement mds::math::CSparseMatrixBase< M >::getDominant | ( | ) | const |
Returns the matrix dominant value.
Reimplemented in mds::math::CSparseMatrixAlt< T >.
| tMatrix& mds::math::CSparseMatrixBase< M >::getImpl | ( | ) |
Returns reference to the matrix implementation.
| const tMatrix& mds::math::CSparseMatrixBase< M >::getImpl | ( | ) | const |
| tSize mds::math::CSparseMatrixBase< M >::getNumOfCols | ( | ) | const |
Reimplemented in mds::math::CSparseMatrixAlt< T >, and mds::math::CSparseMatrix< T >.
| tSize mds::math::CSparseMatrixBase< M >::getNumOfRows | ( | ) | const |
Returns the matrix size (dimensions).
Reimplemented in mds::math::CSparseMatrixAlt< T >, and mds::math::CSparseMatrix< T >.
| tElement& mds::math::CSparseMatrixBase< M >::operator() | ( | tSize | row, |
| tSize | col | ||
| ) |
Method returns reference to the element at (row, col).
| const tElement mds::math::CSparseMatrixBase< M >::operator() | ( | tSize | row, |
| tSize | col | ||
| ) | const |
Method returns element (by value) at (row, col).
Reimplemented in mds::math::CSparseMatrix< T >, and mds::math::CSparseMatrixAlt< T >.
| CSparseMatrixBase& mds::math::CSparseMatrixBase< M >::operator= | ( | const CSparseMatrixBase< M > & | ) | [protected] |
Assignment operator.
| Function mds::math::CSparseMatrixBase< M >::pforEach | ( | Function | Func | ) | const |
Calls a function object for every matrix element.
Reimplemented in mds::math::CSparseMatrixAlt< T >, mds::math::CSparseMatrix< T >, mds::math::CSparseMatrix< T >, and mds::math::CSparseMatrixAlt< T >.
| Function mds::math::CSparseMatrixBase< M >::pforEachRef | ( | Function | Func | ) |
Calls a function object for every non-dominant matrix element.
Reimplemented in mds::math::CSparseMatrixAlt< T >, mds::math::CSparseMatrix< T >, mds::math::CSparseMatrixAlt< T >, and mds::math::CSparseMatrix< T >.
| tSize mds::math::CSparseMatrixBase< M >::rows | ( | ) | const |
Returns the matrix size (dimensions).
Reimplemented in mds::math::CSparseMatrixAlt< T >, and mds::math::CSparseMatrix< T >.
| tMatrix& mds::math::CSparseMatrixBase< M >::set | ( | tSize | row, |
| tSize | col, | ||
| const tElement & | Value | ||
| ) |
Method sets value of element at (row, col).
1.7.6.1