simdpp::transpose2

From libsimdpp-docs
template<unsigned N>
void transpose2( Vec<N>& a, Vec<N>& b );

Transposes two vectors at 2x2 element block granularity.

The implementation behaves as if the following set of overloads is provided:

Vec
int16
uint16
int32
uint32
int64
uint64
float32
float64

Parameters[edit]

a, b - vectors to transpose

Return value[edit]

(none)

Equivalent operation[edit]

a = [ a0; b0 ; a2; b2; ... ]
b = [ b1; a1 ; b3; a3; ... ]

See also[edit]