MeVisLab Toolbox Reference
|
MatricTemplate
implements general Matrix class based on valarray of objects with Template class type for nummeric calculations with dynamic size
More...
#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.
constructor initialising memory block for requested matrix size
ctor
Definition at line 295 of file mlMatrixTemplate.h.
ml::MatrixTemplate< T >::MatrixTemplate | ( | const MatrixTemplate< T > & | mt | ) |
ml::MatrixTemplate< T >::~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 mlrange_cast().
|
inline |
const itterator access to i-te column slice
const slice for column access
Definition at line 288 of file mlMatrixTemplate.h.
References mlrange_cast().
void ml::MatrixTemplate< T >::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 mlrange_cast().
|
inline |
const slice of first argument (i.e column(i))
Definition at line 223 of file mlMatrixTemplate.h.
References mlrange_cast().
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.
T ml::MatrixTemplate< T >::operator() | ( | size_t | x, |
size_t | y ) const |
element x,y
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.
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 mlrange_cast().
|
inline |
|
inline |
const slice of column(i)
Definition at line 229 of file mlMatrixTemplate.h.
References mlrange_cast().
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.
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.
|
inline |
itterator access to i-te row slice
slice for row access
Definition at line 267 of file mlMatrixTemplate.h.
References mlrange_cast().
|
inline |
const itterator access to i-te row slice
const slice for row access
Definition at line 274 of file mlMatrixTemplate.h.
References mlrange_cast().
|
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.
|
inline |
return number of rows
Definition at line 209 of file mlMatrixTemplate.h.