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

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)

Detailed Description

template<class _elementOperationType>
class vctDynamicVectorLoopEngines::VioSi< _elementOperationType >

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]\).

Parameters
_elementOperationTypethe type of the binary operation
See also
vctDynamicVectorLoopEngines

Member Function Documentation

◆ Run()

template<class _elementOperationType>
template<class _inputOutputVectorType, class _inputScalarType>
void vctDynamicVectorLoopEngines::VioSi< _elementOperationType >::Run ( _inputOutputVectorType & inputOutputVector,
const _inputScalarType inputScalar )
inlinestatic

Unroll the loop

Parameters
inputOutputVectorThe input output vector (first operand).
inputScalarThe input scalar (second operand).

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