simdpp::splat
From cppreference.com
< 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.
Contents |
Parameters
a | - | source vector |
n | - | the index of the element to broadcast |
Return value
A vector with all elements set to the n
-th element.
Equivalent operation
r0 = a[s] r1 = a[s] ... rM = a[s]
Here M = N-1.
See also
This section is incomplete |