nemo::SubspaceMapping< T > Class Template Reference
A Mapping that extracts certain dimensions from an input vector. More...
#include <VectorMappings.h>
Public Member Functions | |
MathVector< T > | evaluate (MathVector< T > value) const |
Compute the outut value for a given input value. | |
~SubspaceMapping () | |
Static Public Member Functions | |
static Mapping< MathVector< T > , MathVector< T > > | create (unsigned int startIndexP, unsigned int outputDimP) |
static Mapping< MathVector< T > , MathVector< T > > | create (unsigned int inDim, bool *dimSelectionP) |
Detailed Description
template<typename T = double>
class nemo::SubspaceMapping< T >
A Mapping that extracts certain dimensions from an input vector.
Which dimensions are extracted can be specified in two ways. Firstly, one can specify a startIndex and an output dimension. Then, the values for indices startIndex ... (startIndex+outDim-1) are put into the output. Secondly, one can specify a boolean mask. All values, whose index has a 'true' in the boolean mask will be set into the output.
This mapping type is not invertible.
Definition at line 32 of file VectorMappings.h.
Constructor & Destructor Documentation
nemo::SubspaceMapping< T >::~SubspaceMapping | ( | ) | [inline] |
Definition at line 65 of file VectorMappings.h.
Member Function Documentation
static Mapping<MathVector<T>,MathVector<T> > nemo::SubspaceMapping< T >::create | ( | unsigned int | inDim, | |
bool * | dimSelectionP | |||
) | [inline, static] |
Definition at line 37 of file VectorMappings.h.
static Mapping<MathVector<T>,MathVector<T> > nemo::SubspaceMapping< T >::create | ( | unsigned int | startIndexP, | |
unsigned int | outputDimP | |||
) | [inline, static] |
Definition at line 34 of file VectorMappings.h.
MathVector<T> nemo::SubspaceMapping< T >::evaluate | ( | MathVector< T > | value | ) | const [inline, virtual] |
Compute the outut value for a given input value.
Implements nemo::MappingDefinition< MathVector< T >, MathVector< T > >.
Definition at line 41 of file VectorMappings.h.
The documentation for this class was generated from the following file:
- nemo/VectorMappings.h
Generated on Mon Feb 25 12:49:59 2013 for NemoMath by 1.6.3