|
MeVisLab Toolbox Reference
|
#include <mlMatrixTemplate.h>
Public Member Functions | |
| MatrixTemplate (size_t x, size_t y) | |
| constructor initialising memory block for requested matrix size | |
| MatrixTemplate (const MatrixTemplate< T > &) | |
| copy constructor | |
| MatrixTemplate< T > & | operator= (const MatrixTemplate< T > &) |
| assignment operator ATTENTION: implies resizing of matrix | |
| ~MatrixTemplate () | |
| destructor: free allocated memory | |
| void | freeMatrix () |
| free allocated memory | |
| void | resizeMatrix (size_t x, size_t y, const T &c=T()) |
| resize matrix, set new allocated elements to value c | |
| void | overrideMatrix (size_t x, size_t y, const T &c=T()) |
| resize matrix if necessary, set all elements on value c | |
| size_t | size () const |
| return total number of matrix elements | |
| size_t | sizeX () const |
| return number of columns | |
| size_t | sizeY () const |
| return number of rows | |
| Slice_iter< T > | row (size_t i) |
| itterator access to i-te row slice | |
| Cslice_iter< T > | row (size_t i) const |
| const itterator access to i-te row slice | |
| Slice_iter< T > | column (size_t i) |
| itterator access to i-te column slice | |
| Cslice_iter< T > | column (size_t i) const |
| const itterator access to i-te column slice | |
| std::valarray< T > & | array () |
| reference to internal valarray | |
| operator T* () | |
| pass access to internal valarray | |
Fortran-style subscripts | |
| T & | operator() (size_t x, size_t y) |
| reference of element x,y | |
| T | operator() (size_t x, size_t y) const |
| element x,y | |
| Slice_iter< T > | operator() (size_t i) |
| slice of first argument (i.e column(i)) | |
| Cslice_iter< T > | operator() (size_t i) const |
| const slice of first argument (i.e column(i)) | |
C-style subscripts | |
| Slice_iter< T > | operator[] (size_t i) |
| slice of column(i) | |
| Cslice_iter< T > | operator[] (size_t i) const |
| const slice of column(i) | |
| MatrixTemplate< T > & | operator*= (T) |
| multiplication of all matrix elements with element-type multiplicator | |
MatricTemplate implements general Matrix class based on valarray of objects with Template class type for nummeric calculations with dynamic size
Definition at line 193 of file mlMatrixTemplate.h.
| ml::MatrixTemplate< T >::MatrixTemplate | ( | size_t | x, |
| size_t | y ) |
constructor initialising memory block for requested matrix size
ctor
Definition at line 295 of file mlMatrixTemplate.h.
References MatrixTemplate().
Referenced by ml::MatrixSizedTemplate< T, SIZE_X, SIZE_Y >::MatrixSizedTemplate(), MatrixTemplate(), MatrixTemplate(), operator*=(), and operator=().
| ml::MatrixTemplate< T >::MatrixTemplate | ( | const MatrixTemplate< T > & | mt | ) |
| ml::MatrixTemplate< T >::~MatrixTemplate | ( | ) |
destructor: free allocated memory
dtor
Definition at line 331 of file mlMatrixTemplate.h.
References ~MatrixTemplate().
Referenced by ~MatrixTemplate().
|
inline |
reference to internal valarray
Definition at line 234 of file mlMatrixTemplate.h.
|
inline |
itterator access to i-te column slice
slice for column access
Definition at line 281 of file mlMatrixTemplate.h.
References column().
Referenced by column(), column(), operator()(), operator()(), operator()(), ml::operator*(), operator[](), and operator[]().
|
inline |
const itterator access to i-te column slice
const slice for column access
Definition at line 288 of file mlMatrixTemplate.h.
References column().
| void ml::MatrixTemplate< T >::freeMatrix | ( | ) |
free allocated memory
free all allocated memory
Definition at line 362 of file mlMatrixTemplate.h.
References freeMatrix().
Referenced by freeMatrix().
|
inline |
pass access to internal valarray
Definition at line 236 of file mlMatrixTemplate.h.
|
inline |
slice of first argument (i.e column(i))
Definition at line 222 of file mlMatrixTemplate.h.
References column().
|
inline |
const slice of first argument (i.e column(i))
Definition at line 223 of file mlMatrixTemplate.h.
References column().
| T & ml::MatrixTemplate< T >::operator() | ( | size_t | x, |
| size_t | y ) |
reference of element x,y
allows Fortran-style element access
Definition at line 371 of file mlMatrixTemplate.h.
References column(), operator()(), and T.
Referenced by operator()().
| T ml::MatrixTemplate< T >::operator() | ( | size_t | x, |
| size_t | y ) const |
element x,y
References T.
| MatrixTemplate< T > & ml::MatrixTemplate< T >::operator*= | ( | T | d | ) |
multiplication of all matrix elements with element-type multiplicator
implements element-individual multiplication with element-type operator
Definition at line 451 of file mlMatrixTemplate.h.
References MatrixTemplate(), operator*=(), and T.
Referenced by operator*=().
| MatrixTemplate< T > & ml::MatrixTemplate< T >::operator= | ( | const MatrixTemplate< T > & | mt | ) |
assignment operator ATTENTION: implies resizing of matrix
assignment operator
Definition at line 318 of file mlMatrixTemplate.h.
References MatrixTemplate(), operator=(), and resizeMatrix().
Referenced by operator=().
|
inline |
|
inline |
| void ml::MatrixTemplate< T >::overrideMatrix | ( | size_t | x, |
| size_t | y, | ||
| const T & | c = T() ) |
resize matrix if necessary, set all elements on value c
dynamic resize if needed: All elements are set to value c. Any pointers or references to elements in the controlled sequence are invalidated.
Definition at line 351 of file mlMatrixTemplate.h.
References overrideMatrix(), and T.
Referenced by overrideMatrix().
| void ml::MatrixTemplate< T >::resizeMatrix | ( | size_t | x, |
| size_t | y, | ||
| const T & | c = T() ) |
resize matrix, set new allocated elements to value c
dynamic resize: If it must lengthen the controlled sequence, it appends elements with value c. Any pointers or references to elements in the controlled sequence are invalidated.
Definition at line 340 of file mlMatrixTemplate.h.
References resizeMatrix(), and T.
Referenced by operator=(), and resizeMatrix().
|
inline |
itterator access to i-te row slice
slice for row access
Definition at line 267 of file mlMatrixTemplate.h.
References row().
Referenced by ml::mul_mv(), ml::operator*(), row(), and row().
|
inline |
const itterator access to i-te row slice
const slice for row access
Definition at line 274 of file mlMatrixTemplate.h.
References row().
|
inline |
return total number of matrix elements
Definition at line 207 of file mlMatrixTemplate.h.
|
inline |
return number of columns
Definition at line 208 of file mlMatrixTemplate.h.
Referenced by ml::mul_mv(), ml::operator*(), ml::operator*(), and ml::operator<<().
|
inline |
return number of rows
Definition at line 209 of file mlMatrixTemplate.h.
Referenced by ml::mul_mv(), ml::operator*(), ml::operator*(), and ml::operator<<().