Method GetMaskBits
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
GetMaskBits(int)
Get bits mask by index (根据索引获取位集掩码). The equivalent of Vector512s.Create(Scalars.GetBitsMask<T>(0, index))
.
public static Vector512<T> GetMaskBits(int index)
Parameters
index
intThe index (索引). The value ranges from 0 to
ElementBitSize
(值的范围是 0 ~ElementBitSize
). 为了性能, 本函数不做范围检查, 调用者请确保它的值在范围内 (For performance purposes, this function does not do range checking; the caller should ensure that its value is within the range).
Returns
- Vector512<T>
Returns bits mask mask (返回位集掩码).