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