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