Method YShuffleInsert
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YShuffleInsert(Vector256<float>, Vector256<float>, Vector256<int>)
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 Vector256<float> YShuffleInsert(Vector256<float> back, Vector256<float> vector, Vector256<int> indices)
Parameters
back
Vector256<float>The background vector (背景向量).
vector
Vector256<float>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<int>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<float>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert(Vector256<double>, Vector256<double>, Vector256<long>)
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 Vector256<double> YShuffleInsert(Vector256<double> back, Vector256<double> vector, Vector256<long> indices)
Parameters
back
Vector256<double>The background vector (背景向量).
vector
Vector256<double>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<long>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<double>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert(Vector256<sbyte>, Vector256<sbyte>, Vector256<sbyte>)
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 Vector256<sbyte> YShuffleInsert(Vector256<sbyte> back, Vector256<sbyte> vector, Vector256<sbyte> indices)
Parameters
back
Vector256<sbyte>The background vector (背景向量).
vector
Vector256<sbyte>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<sbyte>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<sbyte>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert(Vector256<byte>, Vector256<byte>, Vector256<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 Vector256<byte> YShuffleInsert(Vector256<byte> back, Vector256<byte> vector, Vector256<byte> indices)
Parameters
back
Vector256<byte>The background vector (背景向量).
vector
Vector256<byte>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<byte>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<byte>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert(Vector256<short>, Vector256<short>, Vector256<short>)
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 Vector256<short> YShuffleInsert(Vector256<short> back, Vector256<short> vector, Vector256<short> indices)
Parameters
back
Vector256<short>The background vector (背景向量).
vector
Vector256<short>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<short>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<short>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert(Vector256<ushort>, Vector256<ushort>, Vector256<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 Vector256<ushort> YShuffleInsert(Vector256<ushort> back, Vector256<ushort> vector, Vector256<ushort> indices)
Parameters
back
Vector256<ushort>The background vector (背景向量).
vector
Vector256<ushort>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<ushort>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<ushort>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert(Vector256<int>, Vector256<int>, Vector256<int>)
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 Vector256<int> YShuffleInsert(Vector256<int> back, Vector256<int> vector, Vector256<int> indices)
Parameters
back
Vector256<int>The background vector (背景向量).
vector
Vector256<int>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<int>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<int>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert(Vector256<uint>, Vector256<uint>, Vector256<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 Vector256<uint> YShuffleInsert(Vector256<uint> back, Vector256<uint> vector, Vector256<uint> indices)
Parameters
back
Vector256<uint>The background vector (背景向量).
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
YShuffleInsert(Vector256<long>, Vector256<long>, Vector256<long>)
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 Vector256<long> YShuffleInsert(Vector256<long> back, Vector256<long> vector, Vector256<long> indices)
Parameters
back
Vector256<long>The background vector (背景向量).
vector
Vector256<long>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<long>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<long>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleInsert(Vector256<ulong>, Vector256<ulong>, Vector256<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 Vector256<ulong> YShuffleInsert(Vector256<ulong> back, Vector256<ulong> vector, Vector256<ulong> indices)
Parameters
back
Vector256<ulong>The background vector (背景向量).
vector
Vector256<ulong>The input vector from which values are selected (从中选择值的输入向量).
indices
Vector256<ulong>The per-element indices used to select a value from
vector
(用于从vector
中选择值的每个元素索引).
Returns
- Vector256<ulong>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also