CMR
1.3.0
|
#include <matrix_modified.hpp>
Public Types | |
typedef matrix_modified< MatrixType, ModifierType > | self_type |
typedef MatrixType | matrix_type |
typedef MatrixType::size_type | size_type |
typedef MatrixType::difference_type | difference_type |
typedef ModifierType::value_type | value_type |
typedef MatrixType::const_reference | const_reference |
typedef MatrixType::const_reference | reference |
typedef MatrixType::const_closure_type | matrix_closure_type |
typedef const self_type | const_closure_type |
typedef self_type | closure_type |
typedef ModifierType | modifier_type |
Public Member Functions | |
matrix_modified (const MatrixType &matrix, modifier_type &modifier) | |
size_type | size1 () const |
size_type | size2 () const |
MatrixType & | data () |
modifier_type & | modifier () |
value_type | operator() (size_type i, size_type j) const |
A matrix proxy which can modify arbitrary entries by attaching a separator functor to it.
typedef self_type tu::matrix_modified< MatrixType, ModifierType >::closure_type |
typedef const self_type tu::matrix_modified< MatrixType, ModifierType >::const_closure_type |
typedef MatrixType::const_reference tu::matrix_modified< MatrixType, ModifierType >::const_reference |
typedef MatrixType::difference_type tu::matrix_modified< MatrixType, ModifierType >::difference_type |
typedef MatrixType::const_closure_type tu::matrix_modified< MatrixType, ModifierType >::matrix_closure_type |
typedef MatrixType tu::matrix_modified< MatrixType, ModifierType >::matrix_type |
typedef ModifierType tu::matrix_modified< MatrixType, ModifierType >::modifier_type |
typedef MatrixType::const_reference tu::matrix_modified< MatrixType, ModifierType >::reference |
typedef matrix_modified<MatrixType, ModifierType> tu::matrix_modified< MatrixType, ModifierType >::self_type |
typedef MatrixType::size_type tu::matrix_modified< MatrixType, ModifierType >::size_type |
typedef ModifierType::value_type tu::matrix_modified< MatrixType, ModifierType >::value_type |
|
inline |
Constructs the modified matrix.
matrix | The orginal matrix |
modifier | Modifier to calculate each entry |
|
inline |
|
inline |
|
inline |
Access operator which calls the modifier to calculate the new value.
i | Row index |
j | Column index |
|
inline |
|
inline |