classPiiUnaryMatrixTransform
#include <PiiConceptualMatrix.h>
A matrix that models the matrix concept by applying a unary function to another matrix.
Inherits PiiConceptualMatrix< PiiUnaryMatrixTransform< Matrix, UnaryFunction >, Matrix::implementationLevel >
Description
Given a model of the matrix concept, mat, and a
function func, this matrix works as if it was the
result of calculating func(mat). Note that
PiiUnaryMatrixTransform is immutable. It provides no way of
modifying the source data.
See also
Public types
|
typedef PiiMatrixTraits< PiiUnaryMatrixTransform<
Matrix, UnaryFunction >, Matrix::implementationLevel >
|
Constructors and destructor
|
(
|
|
|
|
Public member functions
|
Traits::const_iterator
|
( )
|
|
Traits::const_column_iterator
|
(
|
|
int
|
( )
|
|
Traits::const_iterator
|
( )
|
|
Traits::value_type
|
(
|
|
|
|
|
Traits::const_row_iterator
|
(
|
|
int
|
( )
|
|
template<class Matrix, class UnaryFunction>
PiiUnaryMatrixTransform<
Matrix, UnaryFunction >
|
(
Creates a PiiUnaryMatrixTransform that returns func(mat). |
Function details
-
PiiUnaryMatrixTransform
(- const Matrix & mat
- const UnaryFunction & func
[inline] -
-
Traits::const_iterator begin
()[inline]Reimplemented from PiiConceptualMatrix.
-
Traits::const_column_iterator columnBegin
(- int index
[inline] -
int columns
()[inline]Reimplemented from PiiConceptualMatrix.
-
Traits::const_iterator end
()[inline]Reimplemented from PiiConceptualMatrix.
-
Traits::value_type operator()
(- int r
- int c
[inline] -
-
Traits::const_row_iterator rowBegin
(- int index
[inline] -
int rows
()[inline]Reimplemented from PiiConceptualMatrix.
-
template<class Matrix, class UnaryFunction>
PiiUnaryMatrixTransform< Matrix, UnaryFunction > unaryMatrixTransform
(- const Matrix & mat
- const UnaryFunction & func
[inline]Creates a PiiUnaryMatrixTransform that returns func(mat).
Add a note
Not a single note added yet. Be the first, add yours.