|
cisst-saw
|
Implement operation of the form \( v_{io} = op(v_{io}, s_i)\) for dynamic vectors. More...
#include <vctDynamicVectorLoopEngines.h>
Static Public Member Functions | |
| template<class _inputOutputVectorType, class _inputScalarType> | |
| static void | Run (_inputOutputVectorType &inputOutputVector, const _inputScalarType inputScalar) |
Implement operation of the form \( v_{io} = op(v_{io}, s_i)\) for dynamic vectors.
This class uses a loop 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. 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 |
|
inlinestatic |
Unroll the loop
| inputOutputVector | The input output vector (first operand). |
| inputScalar | The input scalar (second operand). |