Method YShuffleInsert_Basic
- Namespace
- Zyl.VectorTraits.Impl.AVector128
- Assembly
- VectorTraits.dll
YShuffleInsert_Basic(Vector128<byte>, Vector128<byte>, Vector128<byte>)
Shuffle and insert (换位并插入). 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 elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i]
.
public static Vector128<byte> YShuffleInsert_Basic(Vector128<byte> back, Vector128<byte> vector, Vector128<byte> indices)
Parameters
back
Vector128<byte>The background vector (背景向量).
vector
Vector128<byte>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector128<byte>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector128<byte>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert_Basic(Vector128<ushort>, Vector128<ushort>, Vector128<ushort>)
Shuffle and insert (换位并插入). 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 elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i]
.
[CLSCompliant(false)]
public static Vector128<ushort> YShuffleInsert_Basic(Vector128<ushort> back, Vector128<ushort> vector, Vector128<ushort> indices)
Parameters
back
Vector128<ushort>The background vector (背景向量).
vector
Vector128<ushort>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector128<ushort>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector128<ushort>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert_Basic(Vector128<uint>, Vector128<uint>, Vector128<uint>)
Shuffle and insert (换位并插入). 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 elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i]
.
[CLSCompliant(false)]
public static Vector128<uint> YShuffleInsert_Basic(Vector128<uint> back, Vector128<uint> vector, Vector128<uint> indices)
Parameters
back
Vector128<uint>The background vector (背景向量).
vector
Vector128<uint>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector128<uint>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector128<uint>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert_Basic(Vector128<ulong>, Vector128<ulong>, Vector128<ulong>)
Shuffle and insert (换位并插入). 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 elements of the background vector will be inserted (若索引值超出范围, 会插入背景向量的元素).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):back[i]
.
[CLSCompliant(false)]
public static Vector128<ulong> YShuffleInsert_Basic(Vector128<ulong> back, Vector128<ulong> vector, Vector128<ulong> indices)
Parameters
back
Vector128<ulong>The background vector (背景向量).
vector
Vector128<ulong>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector128<ulong>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector128<ulong>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also