simdpp::extract

From libsimdpp-docs
template< unsigned K, unsigned N, class E >
Ret extract( const Vec1<N,E>& a );

Extracts a K-th element from the given source vector. The implementation behaves as if the following set of overloads is provided:

Ret Vec1
int8_t int8
uint8_t uint8
int16_t int16
uint16_t uint16
int32_t int32
uint32_t uint32
int64_t int64
uint64_t uint64
float float32
double float64

Parameters[edit]

a - vector to extract data from

Return value[edit]

Extracted element (none)

Equivalent operation[edit]

r = a[K]

See also[edit]