Method Shuffle_Args
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
Shuffle_Args<TIdx>(IWVectorTraits256, Vector256<TIdx>, out Vector256<TIdx>, out Vector256<TIdx>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
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 void Shuffle_Args<TIdx>(this IWVectorTraits256 athis, Vector256<TIdx> indices, out Vector256<TIdx> args0, out Vector256<TIdx> args1) where TIdx : struct
Parameters
athis
IWVectorTraits256indices
Vector256<TIdx>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
args0
Vector256<TIdx>Arguments 0 (参数0). Used for Shuffle_Core .
args1
Vector256<TIdx>Arguments 1 (参数1). Used for Shuffle_Core .
Type Parameters
TIdx
The element type of the indices parameter (索引参数的元素类型).
Exceptions
- NotSupportedException
These element types(
TIdx
) are not supported.
- See Also
Shuffle_Args<TIdx>(IWVectorTraits256, Vector256<TIdx>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
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 (Vector256<TIdx> args0, Vector256<TIdx> args1) Shuffle_Args<TIdx>(this IWVectorTraits256 athis, Vector256<TIdx> indices) where TIdx : struct
Parameters
athis
IWVectorTraits256indices
Vector256<TIdx>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
Returns
- (Vector256<TIdx> args0, Vector256<TIdx> args1)
The arguments provided for Shuffle_Core (为 Shuffle_Core 提供参数).
Type Parameters
TIdx
The element type of the indices parameter (索引参数的元素类型).
Exceptions
- NotSupportedException
These element types(
TIdx
) are not supported.
- See Also
Shuffle_Args(IWVectorTraits256, Vector256<sbyte>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static (Vector256<sbyte> args0, Vector256<sbyte> args1) Shuffle_Args(this IWVectorTraits256 athis, Vector256<sbyte> indices)
Parameters
athis
IWVectorTraits256indices
Vector256<sbyte>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
Returns
- (Vector256<sbyte> args0, Vector256<sbyte> args1)
The arguments provided for Shuffle_Core (为 Shuffle_Core 提供参数).
- See Also
Shuffle_Args(IWVectorTraits256, Vector256<byte>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static (Vector256<byte> args0, Vector256<byte> args1) Shuffle_Args(this IWVectorTraits256 athis, Vector256<byte> indices)
Parameters
athis
IWVectorTraits256indices
Vector256<byte>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
Returns
- (Vector256<byte> args0, Vector256<byte> args1)
The arguments provided for Shuffle_Core (为 Shuffle_Core 提供参数).
- See Also
Shuffle_Args(IWVectorTraits256, Vector256<short>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static (Vector256<short> args0, Vector256<short> args1) Shuffle_Args(this IWVectorTraits256 athis, Vector256<short> indices)
Parameters
athis
IWVectorTraits256indices
Vector256<short>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
Returns
- (Vector256<short> Lower, Vector256<short> Upper)
The arguments provided for Shuffle_Core (为 Shuffle_Core 提供参数).
- See Also
Shuffle_Args(IWVectorTraits256, Vector256<ushort>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static (Vector256<ushort> args0, Vector256<ushort> args1) Shuffle_Args(this IWVectorTraits256 athis, Vector256<ushort> indices)
Parameters
athis
IWVectorTraits256indices
Vector256<ushort>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
Returns
- (Vector256<ushort> Lower, Vector256<ushort> Upper)
The arguments provided for Shuffle_Core (为 Shuffle_Core 提供参数).
- See Also
Shuffle_Args(IWVectorTraits256, Vector256<int>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static (Vector256<int> args0, Vector256<int> args1) Shuffle_Args(this IWVectorTraits256 athis, Vector256<int> indices)
Parameters
athis
IWVectorTraits256indices
Vector256<int>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
Returns
- (Vector256<int> Lower, Vector256<int> Upper)
The arguments provided for Shuffle_Core (为 Shuffle_Core 提供参数).
- See Also
Shuffle_Args(IWVectorTraits256, Vector256<uint>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static (Vector256<uint> args0, Vector256<uint> args1) Shuffle_Args(this IWVectorTraits256 athis, Vector256<uint> indices)
Parameters
athis
IWVectorTraits256indices
Vector256<uint>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
Returns
- (Vector256<uint> Lower, Vector256<uint> Upper)
The arguments provided for Shuffle_Core (为 Shuffle_Core 提供参数).
- See Also
Shuffle_Args(IWVectorTraits256, Vector256<long>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static (Vector256<long> args0, Vector256<long> args1) Shuffle_Args(this IWVectorTraits256 athis, Vector256<long> indices)
Parameters
athis
IWVectorTraits256indices
Vector256<long>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
Returns
- (Vector256<long> Lower, Vector256<long> Upper)
The arguments provided for Shuffle_Core (为 Shuffle_Core 提供参数).
- See Also
Shuffle_Args(IWVectorTraits256, Vector256<ulong>)
Arguments calculation for shuffle and clear (换位并清零的参数计算). Provide arguments for Shuffle_Core (为 Shuffle_Core 提供参数). If the index value is out of range, the element will be cleared (若索引值超出范围, 元素会被清零).
Mnemonic: rt[i] := (0<=indices[i] && indices[i]<Count)?( vector[indices[i]] ):0
.
[CLSCompliant(false)]
public static (Vector256<ulong> args0, Vector256<ulong> args1) Shuffle_Args(this IWVectorTraits256 athis, Vector256<ulong> indices)
Parameters
athis
IWVectorTraits256indices
Vector256<ulong>The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).
Returns
- (Vector256<ulong> Lower, Vector256<ulong> Upper)
The arguments provided for Shuffle_Core (为 Shuffle_Core 提供参数).
- See Also