Permute vector and mask elements using generated indexes, index vectors, selection masks, or indexed memory accesses.
More...
|
| template<simd_size_type _NewSize = 0, vec_type _Vp> |
| constexpr auto | xvec::simd::permute (const _Vp &v, detail::index_generator_function auto &&fn) |
| | Permute the elements in a vec value using a generator function to compute the indexing.
|
| template<simd_size_type _NewSize = 0, mask_type _Mask> |
| constexpr auto | xvec::simd::permute (const _Mask &mask, detail::index_generator_function auto &&fn) |
| | Permute mask elements using a generator function to compute the indexing.
|
| template<vec_or_mask_type _V, vec_integral _I> |
| constexpr resize_t< _I::size, _V > | xvec::simd::permute (const _V &v, const _I &indexes) |
| | Permute a vec or mask value by the unsigned integral indexes supplied in another basic_vec value.
|
| template<vec_type _V> |
| constexpr _V | xvec::simd::compress (const _V &v, const typename _V::mask_type &selector) |
| | Compress a basic_vec or basic_mask value by a mask. The elements corresponding to any set mask bits will be packed contiguously into the output. Excess elements will be zeroed. The output basic_vec will have elements of the same type as the input basic_vec, and the same number of elements as the input mask.
|
| template<vec_type _V> |
| constexpr _V | xvec::simd::compress (const _V &v, const typename _V::mask_type &selector, const typename _V::value_type &fill_value) |
| | Compress selected vector elements and fill the remaining positions.
|
|
template<mask_type _M> |
| constexpr _M | xvec::simd::compress (const _M &v, const std::type_identity_t< _M > &selector) |
| | Compress one mask using another mask.
|
|
template<mask_type _M> |
| constexpr _M | xvec::simd::compress (const _M &v, const std::type_identity_t< _M > &selector, bool fill_value) |
| | Compress one mask using another mask, filling the remaining positions.
|
| template<vec_type _V> |
| constexpr _V | xvec::simd::expand (const _V &v, const typename _V::mask_type &selector, const _V &original={}) |
| | Expand consecutive input elements into positions selected by a mask.
|
| template<mask_type _M> |
| constexpr _M | xvec::simd::expand (const _M &v, const std::type_identity_t< _M > &selector, const _M &original={}) |
| | Expand consecutive mask elements into selected output positions.
|
template<typename _Vp = std::nullptr_t, detail::contiguous_sized_range _Range, vec_integral _Indexes, typename... _Flags>
requires detail::gather_from_requires<_Vp, _Range, _Indexes> |
| constexpr auto | xvec::simd::partial_gather_from (_Range &&r, const _Indexes &indexes, flags< _Flags... > f={}) |
| | Gather the contents of a contiguous range using the integral indexes supplied in another vec value.
|
template<typename _Vp = std::nullptr_t, detail::contiguous_sized_range _Range, vec_integral _Indexes, typename... _Flags>
requires detail::gather_from_requires<_Vp, _Range, _Indexes> |
| constexpr auto | xvec::simd::unchecked_gather_from (_Range &&r, const _Indexes &indexes, flags< _Flags... > f={}) |
| | Unchecked variant of gather.
|
template<typename _Vp = std::nullptr_t, detail::contiguous_sized_range _Range, vec_integral _Indexes, typename... _Flags>
requires detail::gather_from_requires<_Vp, _Range, _Indexes> |
| constexpr auto | xvec::simd::partial_gather_from (_Range &&r, const typename _Indexes::mask_type &mask, const _Indexes &indexes, flags< _Flags... > f={}) |
| | Gather selected elements from a contiguous range.
|
template<typename _Vp = std::nullptr_t, detail::contiguous_sized_range _Range, vec_integral _Indexes, typename... _Flags>
requires detail::gather_from_requires<_Vp, _Range, _Indexes> |
| constexpr auto | xvec::simd::unchecked_gather_from (_Range &&r, const typename _Indexes::mask_type &mask, const _Indexes &indexes, flags< _Flags... > f={}) |
| | Unchecked variant of masked gather_from.
|
template<detail::contiguous_sized_range _Range, vec_type _Vp, vec_integral _Indexes, typename... _Flags>
requires detail::scatter_to_requires<_Vp, _Range, _Indexes> |
| constexpr void | xvec::simd::partial_scatter_to (const _Vp &values, _Range &&r, const _Indexes &indexes, flags< _Flags... > f={}) |
| | Scatter the contents of a basic_vec into memory at the integral index positions supplied in another basic_vec value.
|
template<detail::contiguous_sized_range _Range, vec_type _Vp, vec_integral _Indexes, typename... _Flags>
requires detail::scatter_to_requires<_Vp, _Range, _Indexes> |
| constexpr void | xvec::simd::partial_scatter_to (const _Vp &values, _Range &&r, const typename _Indexes::mask_type &mask, const _Indexes &indexes, flags< _Flags... > f={}) |
| | Scatter selected vector elements into a contiguous range.
|
template<detail::contiguous_sized_range _Range, vec_type _Vp, vec_integral _Indexes, typename... _Flags>
requires detail::scatter_to_requires<_Vp, _Range, _Indexes> |
| constexpr void | xvec::simd::unchecked_scatter_to (const _Vp &values, _Range &&r, const _Indexes &indexes, flags< _Flags... > f={}) |
| | Unchecked variant of scatter.
|
template<detail::contiguous_sized_range _Range, vec_type _Vp, vec_integral _Indexes, typename... _Flags>
requires detail::scatter_to_requires<_Vp, _Range, _Indexes> |
| constexpr void | xvec::simd::unchecked_scatter_to (const _Vp &values, _Range &&r, const typename _Indexes::mask_type &mask, const _Indexes &indexes, flags< _Flags... > f={}) |
| | Unchecked variant of masked scatter.
|
Permute vector and mask elements using generated indexes, index vectors, selection masks, or indexed memory accesses.
Includes compression, expansion, gather, and scatter operations.