VISH  0.2
Public Types | Static Public Member Functions
Eagle::Vector::subvector Struct Reference

Access part of the vector as a vector of smaller size. More...

#include </home/werner/origo/vish/ocean/eagle/Vector.hpp>

List of all members.

Public Types

Static Public Member Functions


Detailed Description

Access part of the vector as a vector of smaller size.

          Vector<4, float> V;
          Vector<3, float>&v = Vector<4,float>::subvector<3>::get(V);

additionally one can also specify some offset:

          Vector<3, float>&v = Vector<4,float>::subvector<3,1>::get(V);

Note that the subvector is also writeable and modifies the respective components of the full vector. As a natural consequence, the retrieved subvector is not necessarily aligned as the full vector. Thus, SIMD vectorized instructions are unlikely to work on subvectors that do not start on alignenment borders. Default subvectors are thus not vectorized.


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