cisst-saw
Loading...
Searching...
No Matches
vctDynamicVectorLoopEngines::VioVio< _elementOperationType > Class Template Reference

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)

Detailed Description

template<class _elementOperationType>
class vctDynamicVectorLoopEngines::VioVio< _elementOperationType >

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.

Parameters
_elementOperationTypeThe type of the binary operation that inputs and rewrites corresponding elements in both vectors.
See also
vctDynamicVectorLoopEngines

Member Function Documentation

◆ Run()

template<class _elementOperationType>
template<class _inputOutput1VectorType, class _inputOutput2VectorType>
void vctDynamicVectorLoopEngines::VioVio< _elementOperationType >::Run ( _inputOutput1VectorType & inputOutput1Vector,
_inputOutput2VectorType & inputOutput2Vector )
inlinestatic

Unroll the loop

Parameters
inputOutput1VectorThe input output vector.
inputOutput2VectorThe second input vector.

The documentation for this class was generated from the following file: