cisst-saw
Loading...
Searching...
No Matches
VoVi< _elementOperationType > Class Template Reference

Implement operation of the form \(v_o = op(v_i)\) for fixed size vectors. More...

#include <vctFixedSizeVectorRecursiveEngines.h>

Public Types

typedef vctFixedSizeVectorRecursiveEngines< _size-1 >::template VoVi< _elementOperationType > RecursiveStep

Static Public Member Functions

template<class _outputVectorType, class _inputVectorType>
static void Unfold (_outputVectorType &outputVector, const _inputVectorType &inputVector)

Detailed Description

template<class _elementOperationType>
class VoVi< _elementOperationType >

Implement operation of the form \(v_o = op(v_i)\) for fixed size vectors.

This class uses template specialization to perform unary vector operations of the form

\[v_{o} = \mathrm{op}(v_{i}) \]

where \(v_{o}\) is the output vector, and \(v_{i}\) is the input vector both of a fixed size, determined at compilation time, op stands for the a unary operation performed elementwise on \(v_{i}\), and whose result is stored elementwise into \(v_{o}\).

Parameters
_elementOperationTypeThe type of the unary operation.
See also
vctFixedSizeVectorRecursiveEngines

Member Typedef Documentation

◆ RecursiveStep

template<class _elementOperationType>
typedef vctFixedSizeVectorRecursiveEngines<_size-1>::template VoVi<_elementOperationType> VoVi< _elementOperationType >::RecursiveStep

Member Function Documentation

◆ Unfold()

template<class _elementOperationType>
template<class _outputVectorType, class _inputVectorType>
void VoVi< _elementOperationType >::Unfold ( _outputVectorType & outputVector,
const _inputVectorType & inputVector )
inlinestatic

Unfold the recursion. Performs the operation _elementOperationType elementwise on the last elements of the input vector and call Unfold for the _size - 1 elements left (i.e. unfold the recursive calls).

Parameters
outputVectorThe output vector.
inputVectorThe input vector.

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