VISH
0.2
|
Access part of the vector as a vector of smaller size. More...
#include </home/werner/origo/vish/ocean/eagle/Vector.hpp>
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.