Function partial_mask¶
function partial_mask(size_t) simd¶
template <typename T, size_t N>
KFR_INTRINSIC vec<T, N> partial_mask(size_t index) Returns a vector of N elements with index leading all-ones elements followed by zeros.
| T | Element type. |
| N | Output vector length (must not exceed half of partial_masks ). |
| index | Number of leading all-ones elements (0 to N). |
A vector acting as a mask selecting the first index lanes. |
Fully qualified name: kfr::partial_mask(size_t)
Declared at simd/read_write.hpp:608
Function partial_mask¶
function partial_mask(size_t, vec_shape<T, N>) simd¶
Returns a vector of N elements with index leading all-ones elements followed by zeros.
| T | Element type. |
| N | Output vector length. |
| index | Number of leading all-ones elements (0 to N). |
| shape | Tag value carrying the element type and length. |
A vector acting as a mask selecting the first index lanes. |
Fully qualified name: kfr::partial_mask(size_t, vec_shape<T, N>)
Declared at simd/read_write.hpp:624
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.