Method YShuffleKernel_Core
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YShuffleKernel_Core<T, TIdx>(IVectorTraits, Vector<T>, (Vector<TIdx> args0, Vector<TIdx> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[Obsolete("It is only suitable for unit testing because it contains branching statements and has poor performance. In general, it is recommended to use the non-generic version of the methods (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
[CLSCompliant(false)]
public static Vector<T> YShuffleKernel_Core<T, TIdx>(this IVectorTraits athis, Vector<T> vector, (Vector<TIdx> args0, Vector<TIdx> args1) args) where T : struct where TIdx : struct
Parameters
athis
IVectorTraitsThis object.
vector
Vector<T>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<TIdx> args0, Vector<TIdx> args1)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<T>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
TIdx
The element type of the indices parameter (索引参数的元素类型).
Exceptions
- NotSupportedException
These element types(
T
,TIdx
) are not supported.
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<float>, (Vector<int> args0, Vector<int> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<float> YShuffleKernel_Core(this IVectorTraits athis, Vector<float> vector, (Vector<int> args0, Vector<int> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<float>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<int> Lower, Vector<int> Upper)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<float>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<double>, (Vector<long> args0, Vector<long> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<double> YShuffleKernel_Core(this IVectorTraits athis, Vector<double> vector, (Vector<long> args0, Vector<long> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<double>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<long> Lower, Vector<long> Upper)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<double>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<sbyte>, (Vector<sbyte> args0, Vector<sbyte> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<sbyte> YShuffleKernel_Core(this IVectorTraits athis, Vector<sbyte> vector, (Vector<sbyte> args0, Vector<sbyte> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<sbyte>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<sbyte> args0, Vector<sbyte> args1)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<sbyte>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<byte>, (Vector<byte> args0, Vector<byte> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<byte> YShuffleKernel_Core(this IVectorTraits athis, Vector<byte> vector, (Vector<byte> args0, Vector<byte> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<byte>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<byte> args0, Vector<byte> args1)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<byte>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<short>, (Vector<short> args0, Vector<short> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<short> YShuffleKernel_Core(this IVectorTraits athis, Vector<short> vector, (Vector<short> args0, Vector<short> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<short>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<short> Lower, Vector<short> Upper)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<short>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<ushort>, (Vector<ushort> args0, Vector<ushort> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<ushort> YShuffleKernel_Core(this IVectorTraits athis, Vector<ushort> vector, (Vector<ushort> args0, Vector<ushort> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<ushort>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<ushort> Lower, Vector<ushort> Upper)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<ushort>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<int>, (Vector<int> args0, Vector<int> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<int> YShuffleKernel_Core(this IVectorTraits athis, Vector<int> vector, (Vector<int> args0, Vector<int> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<int>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<int> Lower, Vector<int> Upper)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<int>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<uint>, (Vector<uint> args0, Vector<uint> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<uint> YShuffleKernel_Core(this IVectorTraits athis, Vector<uint> vector, (Vector<uint> args0, Vector<uint> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<uint>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<uint> Lower, Vector<uint> Upper)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<uint>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<long>, (Vector<long> args0, Vector<long> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<long> YShuffleKernel_Core(this IVectorTraits athis, Vector<long> vector, (Vector<long> args0, Vector<long> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<long>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<long> Lower, Vector<long> Upper)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<long>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
YShuffleKernel_Core(IVectorTraits, Vector<ulong>, (Vector<ulong> args0, Vector<ulong> args1))
Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args).
Mnemonic: rt[i] := vector[indices[i]]
. Conditions: 0<=indices[i] && indices[i]<Count
.
[CLSCompliant(false)]
public static Vector<ulong> YShuffleKernel_Core(this IVectorTraits athis, Vector<ulong> vector, (Vector<ulong> args0, Vector<ulong> args1) args)
Parameters
athis
IVectorTraitsvector
Vector<ulong>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector<ulong> Lower, Vector<ulong> Upper)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<ulong>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also