Skip to content

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.

Template parameters
T Element type.
N Output vector length (must not exceed half of partial_masks ).
Parameters
index Number of leading all-ones elements (0 to N).
Returns
A vector acting as a mask selecting the first index lanes.

Fully qualified name: kfr::partial_mask(size_t)

Function partial_mask

function partial_mask(size_t, vec_shape<T, N>) simd

template <typename T, size_t N>
KFR_INTRINSIC vec<T, N> partial_mask(size_t index, vec_shape<T, N>)

Returns a vector of N elements with index leading all-ones elements followed by zeros.

Template parameters
T Element type.
N Output vector length.
Parameters
index Number of leading all-ones elements (0 to N).
shape Tag value carrying the element type and length.
Returns
A vector acting as a mask selecting the first index lanes.

Fully qualified name: kfr::partial_mask(size_t, vec_shape<T, N>)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.