Method YShuffleKernel
- Namespace
- Zyl.Vector
Traits .Impl
- Assembly
- VectorTraits.dll
YShuffleKernel(Vector<float>, Vector<int>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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
YShuffleKernel(Vector<double>, Vector<long>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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
YShuffleKernel(Vector<sbyte>, Vector<sbyte>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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
YShuffleKernel(Vector<byte>, Vector<byte>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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
YShuffleKernel(Vector<short>, Vector<short>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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
YShuffleKernel(Vector<ushort>, Vector<ushort>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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
YShuffleKernel(Vector<int>, Vector<int>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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
YShuffleKernel(Vector<uint>, Vector<uint>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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
YShuffleKernel(Vector<long>, Vector<long>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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
YShuffleKernel(Vector<ulong>, Vector<ulong>)
Only shuffle (仅换位). 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 result is undefined (若索引值超出范围, 结果是未定义的). You can use the Indexrt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
Parameters
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