simdpp::splat
From libsimdpp-docs
< shuffle
template<unsigned n, unsigned N, class E>
Vec<N,_DETAIL_> splat( const Vec<N,E>& a ); |
||
Broadcasts n
-th element of the source vector across all lanes of the vector.
Vec
must be a non-mask vector type.
Parameters[edit]
a | - | source vector |
n | - | the index of the element to broadcast |
Return value[edit]
A vector with all elements set to the n
-th element.
Equivalent operation[edit]
r0 = a[s] r1 = a[s] ... rM = a[s]
Here M = N-1.
See also[edit]
This section is incomplete |