Method YShuffleX2Kernel_Core
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YShuffleX2Kernel_Core<T, TIdx>(IVectorTraits, Vector<T>, Vector<T>, (Vector<TIdx> args0, Vector<TIdx> args1, Vector<TIdx> args2, Vector<TIdx> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[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> YShuffleX2Kernel_Core<T, TIdx>(this IVectorTraits athis, Vector<T> vector0, Vector<T> vector1, (Vector<TIdx> args0, Vector<TIdx> args1, Vector<TIdx> args2, Vector<TIdx> args3) args) where T : struct where TIdx : struct
Parameters
athis
IVectorTraitsThis object.
vector0
Vector<T>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<T>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<TIdx> args0, Vector<TIdx> args1, Vector<TIdx> args2, Vector<TIdx> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<T>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
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
YShuffleX2Kernel_Core(IVectorTraits, Vector<float>, Vector<float>, (Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<float> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<float> vector0, Vector<float> vector1, (Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<float>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<float>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<float>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
- See Also
YShuffleX2Kernel_Core(IVectorTraits, Vector<double>, Vector<double>, (Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<double> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<double> vector0, Vector<double> vector1, (Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<double>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<double>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<double>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
- See Also
YShuffleX2Kernel_Core(IVectorTraits, Vector<sbyte>, Vector<sbyte>, (Vector<sbyte> args0, Vector<sbyte> args1, Vector<sbyte> args2, Vector<sbyte> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<sbyte> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<sbyte> vector0, Vector<sbyte> vector1, (Vector<sbyte> args0, Vector<sbyte> args1, Vector<sbyte> args2, Vector<sbyte> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<sbyte>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<sbyte>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<sbyte> args0, Vector<sbyte> args1, Vector<sbyte> args2, Vector<sbyte> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<sbyte>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
- See Also
YShuffleX2Kernel_Core(IVectorTraits, Vector<byte>, Vector<byte>, (Vector<byte> args0, Vector<byte> args1, Vector<byte> args2, Vector<byte> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<byte> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<byte> vector0, Vector<byte> vector1, (Vector<byte> args0, Vector<byte> args1, Vector<byte> args2, Vector<byte> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<byte>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<byte>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<byte> args0, Vector<byte> args1, Vector<byte> args2, Vector<byte> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<byte>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
- See Also
YShuffleX2Kernel_Core(IVectorTraits, Vector<short>, Vector<short>, (Vector<short> args0, Vector<short> args1, Vector<short> args2, Vector<short> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<short> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<short> vector0, Vector<short> vector1, (Vector<short> args0, Vector<short> args1, Vector<short> args2, Vector<short> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<short>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<short>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<short> args0, Vector<short> args1, Vector<short> args2, Vector<short> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<short>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
- See Also
YShuffleX2Kernel_Core(IVectorTraits, Vector<ushort>, Vector<ushort>, (Vector<ushort> args0, Vector<ushort> args1, Vector<ushort> args2, Vector<ushort> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<ushort> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<ushort> vector0, Vector<ushort> vector1, (Vector<ushort> args0, Vector<ushort> args1, Vector<ushort> args2, Vector<ushort> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<ushort>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<ushort>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<ushort> args0, Vector<ushort> args1, Vector<ushort> args2, Vector<ushort> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<ushort>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
- See Also
YShuffleX2Kernel_Core(IVectorTraits, Vector<int>, Vector<int>, (Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<int> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<int> vector0, Vector<int> vector1, (Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<int>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<int>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<int>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
- See Also
YShuffleX2Kernel_Core(IVectorTraits, Vector<uint>, Vector<uint>, (Vector<uint> args0, Vector<uint> args1, Vector<uint> args2, Vector<uint> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<uint> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<uint> vector0, Vector<uint> vector1, (Vector<uint> args0, Vector<uint> args1, Vector<uint> args2, Vector<uint> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<uint>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<uint>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<uint> args0, Vector<uint> args1, Vector<uint> args2, Vector<uint> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<uint>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
- See Also
YShuffleX2Kernel_Core(IVectorTraits, Vector<long>, Vector<long>, (Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<long> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<long> vector0, Vector<long> vector1, (Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<long>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<long>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3)The arguments(参数). Derived from YShuffleKernel_Args .
Returns
- Vector<long>
A new vector containing the values from input vectors selected by the given
indices
(一个新向量,其中包含给定indices
从输入向量集中选择的值).
- See Also
YShuffleX2Kernel_Core(IVectorTraits, Vector<ulong>, Vector<ulong>, (Vector<ulong> args0, Vector<ulong> args1, Vector<ulong> args2, Vector<ulong> args3))
Core calculation for only shuffle on 2 vectors (在2个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX2Kernel_Args (其参数来源于 YShuffleX2Kernel_Args).
Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1)
. Conditions: 0<=indices[i] && indices[i]<(Count*2)
.
[CLSCompliant(false)]
public static Vector<ulong> YShuffleX2Kernel_Core(this IVectorTraits athis, Vector<ulong> vector0, Vector<ulong> vector1, (Vector<ulong> args0, Vector<ulong> args1, Vector<ulong> args2, Vector<ulong> args3) args)
Parameters
athis
IVectorTraitsvector0
Vector<ulong>The input vector 0 from which values are selected (从中选择值的输入向量0).
vector1
Vector<ulong>The input vector 1 from which values are selected (从中选择值的输入向量1).
args
(Vector<ulong> args0, Vector<ulong> args1, Vector<ulong> args2, Vector<ulong> args3)The arguments(参数). Derived from YShuffleKernel_Args .