The Vish Visualization Shell 0.3
Vish
List of all members
Eagle::Vector< T, n >::subvector< size, offset > Struct Template Reference

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

#include <elementary/eagle/Vector.hpp>

Detailed Description

template<class T, dimension_t n>
template<dimension_t size, int offset = 0>
struct Eagle::Vector< T, n >::subvector< size, offset >

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

constexpr T & get(int i)
writable element access
Definition FixedArray.hpp:650
A Vector is an fixed-size array (see class FixedArray) with vector space operations,...
Definition Vector.hpp:46

additionally one can also specify some offset:

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.