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