|
cisst-saw
|
Implement operation of the form \((v_{1}, v_{2}) = op(v_{1}, v_{2})\) for dynamic vectors. More...
#include <vctDynamicVectorLoopEngines.h>
Static Public Member Functions | |
| template<class _inputOutput1VectorType, class _inputOutput2VectorType> | |
| static void | Run (_inputOutput1VectorType &inputOutput1Vector, _inputOutput2VectorType &inputOutput2Vector) |
Implement operation of the form \((v_{1}, v_{2}) = op(v_{1}, v_{2})\) for dynamic vectors.
This class uses a loop to perform binary vector operations of the form
\[(v_{1}, v_{2}) = \mathrm{op}(v_{1}, v_{2}) \]
where both \(v_{1}, v_{2}\) are input and output vectors of an equal size. The operation is evaluated elementwise, that is, \((v_{1}[i], v_{2}[i] = \mathrm{op}(v_{1}[i], v_{2}[i])\). The typical operation in this case is swapping the elements of the two vectors.
| _elementOperationType | The type of the binary operation that inputs and rewrites corresponding elements in both vectors. |
|
inlinestatic |
Unroll the loop
| inputOutput1Vector | The input output vector. |
| inputOutput2Vector | The second input vector. |