|
cisst-saw
|
Implement operation of the form \(v_{io} = op(v_{io})\) for fixed size vectors. More...
#include <vctFixedSizeVectorRecursiveEngines.h>
Public Types | |
| typedef vctFixedSizeVectorRecursiveEngines< _size-1 >::template Vio< _elementOperationType > | RecursiveStep |
Static Public Member Functions | |
| template<class _inputOutputVectorType> | |
| static void | Unfold (_inputOutputVectorType &inputOutput) |
Implement operation of the form \(v_{io} = op(v_{io})\) for fixed size vectors.
This class uses template specialization to perform unary store back vector operations of the form
\[v_{io} = \mathrm{op}(v_{io}) \]
where \(v_{io}\) is the input output vector. The vector has a fixed size, determined at compilation time, op stands for the unary operation performed elementwise on \(v_{io}\) and whose result is stored elementwise into \(v_{io}[index]\).
| _elementOperationType | The type of the unary operation. |
| typedef vctFixedSizeVectorRecursiveEngines<_size-1>::template Vio<_elementOperationType> Vio< _elementOperationType >::RecursiveStep |
|
inlinestatic |
Unfold the recursion. Performs the operation _elementOperationType elementwise on the last elements of the input output vector and call Unfold for the _size - 1 elements left (i.e. unfold the recursive calls).
| inputOutput | The input output vector. |