Method Shuffle_EqualsShift
- Namespace
- Zyl.VectorTraits.Impl.AVector256
- Assembly
- VectorTraits.dll
Shuffle_EqualsShift(Vector256<uint>, Vector256<uint>)
Shuffle and clear (换位并清零). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector256<uint> Shuffle_EqualsShift(Vector256<uint> vector, Vector256<uint> indices)
Parameters
vector
Vector256<uint>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<uint>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<uint>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also