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