ERC CISST - cisst software

vctFixedSizeVectorRecursiveEngines< _size >::SoVi< _incrementalOperationType, _elementOperationType > Class Template Reference

#include <vctFixedSizeVectorRecursiveEngines.h>

List of all members.


Detailed Description

template<vct::size_type _size>
template<class _incrementalOperationType, class _elementOperationType>
class vctFixedSizeVectorRecursiveEngines< _size >::SoVi< _incrementalOperationType, _elementOperationType >

Implement operation of the form $s_o = op_{incr}(op(v_i))$ for fixed size vectors.

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

\[ s_o = \mathrm{op_{incr}(\mathrm{op}(v_i))} \]

where $v_i$ is the input vector and $s_o$ is the scalar output. The vector has a fixed size, determined at compilation time, op stands for the unary operation performed elementwise on $v_i$ and whose result are used incrementally as input for $op_{incr}$. For a vector of size 3, the result is $s_o = op_{incr}(op_{incr}(op(v[1]), op(v[0])), op(v[2])) $.

Parameters:
_incrementalOperationType The type of the incremental operation.
_elementOperationType The type of the unary operation.
See also:
vctFixedSizeVectorRecursiveEngines

Definition at line 549 of file vctFixedSizeVectorRecursiveEngines.h.

Public Types

Static Public Member Functions


Member Function Documentation

template<vct::size_type _size>
template<class _incrementalOperationType, class _elementOperationType>
template<class _inputVectorType>
static OutputType vctFixedSizeVectorRecursiveEngines< _size >::SoVi< _incrementalOperationType, _elementOperationType >::Unfold ( _inputVectorType &  inputVector  )  [inline, static]

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). The incremental operation is applied to the result of the recursive Unfold call and the result of _elementOperationType(inputVector[_size]).

Parameters:
inputVector The input vector.

Definition at line 566 of file vctFixedSizeVectorRecursiveEngines.h.


The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu