Method Shuffle_Core
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
Shuffle_Core<T, TIdx>(IWVectorTraits128, Vector128<T>, (Vector128<TIdx> args0, Vector128<TIdx> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[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 Vector128<T> Shuffle_Core<T, TIdx>(this IWVectorTraits128 athis, Vector128<T> vector, (Vector128<TIdx> args0, Vector128<TIdx> args1) args) where T : struct where TIdx : struct
Parameters
athis
IWVectorTraits128This object.
vector
Vector128<T>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<TIdx> args0, Vector128<TIdx> args1)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<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
Shuffle_Core(IWVectorTraits128, Vector128<float>, (Vector128<int> args0, Vector128<int> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<float> Shuffle_Core(this IWVectorTraits128 athis, Vector128<float> vector, (Vector128<int> args0, Vector128<int> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<float>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<int> Lower, Vector128<int> Upper)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<float>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
Shuffle_Core(IWVectorTraits128, Vector128<double>, (Vector128<long> args0, Vector128<long> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<double> Shuffle_Core(this IWVectorTraits128 athis, Vector128<double> vector, (Vector128<long> args0, Vector128<long> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<double>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<long> Lower, Vector128<long> Upper)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<double>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
Shuffle_Core(IWVectorTraits128, Vector128<sbyte>, (Vector128<sbyte> args0, Vector128<sbyte> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<sbyte> Shuffle_Core(this IWVectorTraits128 athis, Vector128<sbyte> vector, (Vector128<sbyte> args0, Vector128<sbyte> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<sbyte>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<sbyte> args0, Vector128<sbyte> args1)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<sbyte>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
Shuffle_Core(IWVectorTraits128, Vector128<byte>, (Vector128<byte> args0, Vector128<byte> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<byte> Shuffle_Core(this IWVectorTraits128 athis, Vector128<byte> vector, (Vector128<byte> args0, Vector128<byte> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<byte>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<byte> args0, Vector128<byte> args1)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<byte>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
Shuffle_Core(IWVectorTraits128, Vector128<short>, (Vector128<short> args0, Vector128<short> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<short> Shuffle_Core(this IWVectorTraits128 athis, Vector128<short> vector, (Vector128<short> args0, Vector128<short> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<short>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<short> Lower, Vector128<short> Upper)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<short>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
Shuffle_Core(IWVectorTraits128, Vector128<ushort>, (Vector128<ushort> args0, Vector128<ushort> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<ushort> Shuffle_Core(this IWVectorTraits128 athis, Vector128<ushort> vector, (Vector128<ushort> args0, Vector128<ushort> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<ushort>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<ushort> Lower, Vector128<ushort> Upper)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<ushort>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
Shuffle_Core(IWVectorTraits128, Vector128<int>, (Vector128<int> args0, Vector128<int> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<int> Shuffle_Core(this IWVectorTraits128 athis, Vector128<int> vector, (Vector128<int> args0, Vector128<int> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<int>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<int> Lower, Vector128<int> Upper)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<int>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
Shuffle_Core(IWVectorTraits128, Vector128<uint>, (Vector128<uint> args0, Vector128<uint> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<uint> Shuffle_Core(this IWVectorTraits128 athis, Vector128<uint> vector, (Vector128<uint> args0, Vector128<uint> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<uint>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<uint> Lower, Vector128<uint> Upper)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<uint>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
Shuffle_Core(IWVectorTraits128, Vector128<long>, (Vector128<long> args0, Vector128<long> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<long> Shuffle_Core(this IWVectorTraits128 athis, Vector128<long> vector, (Vector128<long> args0, Vector128<long> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<long>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<long> Lower, Vector128<long> Upper)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<long>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also
Shuffle_Core(IWVectorTraits128, Vector128<ulong>, (Vector128<ulong> args0, Vector128<ulong> args1))
Core calculation for shuffle and clear (换位并清零的核心计算). Its arguments are derived from Shuffle_Args (其参数来源于 Shuffle_Args).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static Vector128<ulong> Shuffle_Core(this IWVectorTraits128 athis, Vector128<ulong> vector, (Vector128<ulong> args0, Vector128<ulong> args1) args)
Parameters
athis
IWVectorTraits128vector
Vector128<ulong>The input vector from which values are selected (从中选择值的输入向量).
args
(Vector128<ulong> Lower, Vector128<ulong> Upper)The arguments(参数). Derived from Shuffle_Args .
Returns
- Vector128<ulong>
A new vector containing the values from
vector
selected by the givenindices
(一个新向量,其中包含给定indices
从vector
中选择的值).
- See Also