Table of Contents

Method YShuffleX2Insert_Core

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YShuffleX2Insert_Core<T, TIdx>(IWVectorTraits128, Vector128<T>, Vector128<T>, Vector128<T>, (Vector128<TIdx> args0, Vector128<TIdx> args1, Vector128<TIdx> args2, Vector128<TIdx> args3, Vector128<TIdx> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):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 Vector128<T> YShuffleX2Insert_Core<T, TIdx>(this IWVectorTraits128 athis, Vector128<T> back, Vector128<T> vector0, Vector128<T> vector1, (Vector128<TIdx> args0, Vector128<TIdx> args1, Vector128<TIdx> args2, Vector128<TIdx> args3, Vector128<TIdx> args4) args) where T : struct where TIdx : struct

Parameters

athis IWVectorTraits128

This object.

back Vector128<T>

The background vector (背景向量).

vector0 Vector128<T>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<T>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<TIdx> args0, Vector128<TIdx> args1, Vector128<TIdx> args2, Vector128<TIdx> args3, Vector128<TIdx> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<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

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<float>, Vector128<float>, Vector128<float>, (Vector128<int> args0, Vector128<int> args1, Vector128<int> args2, Vector128<int> args3, Vector128<int> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<float> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<float> back, Vector128<float> vector0, Vector128<float> vector1, (Vector128<int> args0, Vector128<int> args1, Vector128<int> args2, Vector128<int> args3, Vector128<int> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<float>

The background vector (背景向量).

vector0 Vector128<float>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<float>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<int> args0, Vector128<int> args1, Vector128<int> args2, Vector128<int> args3, Vector128<int> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<float>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<double>, Vector128<double>, Vector128<double>, (Vector128<long> args0, Vector128<long> args1, Vector128<long> args2, Vector128<long> args3, Vector128<long> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<double> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<double> back, Vector128<double> vector0, Vector128<double> vector1, (Vector128<long> args0, Vector128<long> args1, Vector128<long> args2, Vector128<long> args3, Vector128<long> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<double>

The background vector (背景向量).

vector0 Vector128<double>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<double>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<long> args0, Vector128<long> args1, Vector128<long> args2, Vector128<long> args3, Vector128<long> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<double>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<sbyte>, Vector128<sbyte>, Vector128<sbyte>, (Vector128<sbyte> args0, Vector128<sbyte> args1, Vector128<sbyte> args2, Vector128<sbyte> args3, Vector128<sbyte> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<sbyte> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<sbyte> back, Vector128<sbyte> vector0, Vector128<sbyte> vector1, (Vector128<sbyte> args0, Vector128<sbyte> args1, Vector128<sbyte> args2, Vector128<sbyte> args3, Vector128<sbyte> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<sbyte>

The background vector (背景向量).

vector0 Vector128<sbyte>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<sbyte>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<sbyte> args0, Vector128<sbyte> args1, Vector128<sbyte> args2, Vector128<sbyte> args3, Vector128<sbyte> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<sbyte>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<byte>, Vector128<byte>, Vector128<byte>, (Vector128<byte> args0, Vector128<byte> args1, Vector128<byte> args2, Vector128<byte> args3, Vector128<byte> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<byte> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<byte> back, Vector128<byte> vector0, Vector128<byte> vector1, (Vector128<byte> args0, Vector128<byte> args1, Vector128<byte> args2, Vector128<byte> args3, Vector128<byte> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<byte>

The background vector (背景向量).

vector0 Vector128<byte>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<byte>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<byte> args0, Vector128<byte> args1, Vector128<byte> args2, Vector128<byte> args3, Vector128<byte> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<byte>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<short>, Vector128<short>, Vector128<short>, (Vector128<short> args0, Vector128<short> args1, Vector128<short> args2, Vector128<short> args3, Vector128<short> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<short> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<short> back, Vector128<short> vector0, Vector128<short> vector1, (Vector128<short> args0, Vector128<short> args1, Vector128<short> args2, Vector128<short> args3, Vector128<short> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<short>

The background vector (背景向量).

vector0 Vector128<short>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<short>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<short> args0, Vector128<short> args1, Vector128<short> args2, Vector128<short> args3, Vector128<short> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<short>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<ushort>, Vector128<ushort>, Vector128<ushort>, (Vector128<ushort> args0, Vector128<ushort> args1, Vector128<ushort> args2, Vector128<ushort> args3, Vector128<ushort> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<ushort> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<ushort> back, Vector128<ushort> vector0, Vector128<ushort> vector1, (Vector128<ushort> args0, Vector128<ushort> args1, Vector128<ushort> args2, Vector128<ushort> args3, Vector128<ushort> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<ushort>

The background vector (背景向量).

vector0 Vector128<ushort>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<ushort>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<ushort> args0, Vector128<ushort> args1, Vector128<ushort> args2, Vector128<ushort> args3, Vector128<ushort> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<ushort>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<int>, Vector128<int>, Vector128<int>, (Vector128<int> args0, Vector128<int> args1, Vector128<int> args2, Vector128<int> args3, Vector128<int> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<int> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<int> back, Vector128<int> vector0, Vector128<int> vector1, (Vector128<int> args0, Vector128<int> args1, Vector128<int> args2, Vector128<int> args3, Vector128<int> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<int>

The background vector (背景向量).

vector0 Vector128<int>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<int>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<int> args0, Vector128<int> args1, Vector128<int> args2, Vector128<int> args3, Vector128<int> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<int>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<uint>, Vector128<uint>, Vector128<uint>, (Vector128<uint> args0, Vector128<uint> args1, Vector128<uint> args2, Vector128<uint> args3, Vector128<uint> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<uint> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<uint> back, Vector128<uint> vector0, Vector128<uint> vector1, (Vector128<uint> args0, Vector128<uint> args1, Vector128<uint> args2, Vector128<uint> args3, Vector128<uint> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<uint>

The background vector (背景向量).

vector0 Vector128<uint>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<uint>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<uint> args0, Vector128<uint> args1, Vector128<uint> args2, Vector128<uint> args3, Vector128<uint> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<uint>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<long>, Vector128<long>, Vector128<long>, (Vector128<long> args0, Vector128<long> args1, Vector128<long> args2, Vector128<long> args3, Vector128<long> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<long> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<long> back, Vector128<long> vector0, Vector128<long> vector1, (Vector128<long> args0, Vector128<long> args1, Vector128<long> args2, Vector128<long> args3, Vector128<long> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<long>

The background vector (背景向量).

vector0 Vector128<long>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<long>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<long> args0, Vector128<long> args1, Vector128<long> args2, Vector128<long> args3, Vector128<long> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<long>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also

YShuffleX2Insert_Core(IWVectorTraits128, Vector128<ulong>, Vector128<ulong>, Vector128<ulong>, (Vector128<ulong> args0, Vector128<ulong> args1, Vector128<ulong> args2, Vector128<ulong> args3, Vector128<ulong> args4))

Core calculation for shuffle and insert on 2 vectors (在2个向量上进行换位并插入的核心计算). Its arguments are derived from YShuffleX2Insert_Args (其参数来源于 YShuffleX2Insert_Args). Mnemonic: rt[i] := (0<=indices[i] && indices[i]<(Count*2))?( element_ref(indices[i], vector0, vector1) ):back[i].

[CLSCompliant(false)]
public static Vector128<ulong> YShuffleX2Insert_Core(this IWVectorTraits128 athis, Vector128<ulong> back, Vector128<ulong> vector0, Vector128<ulong> vector1, (Vector128<ulong> args0, Vector128<ulong> args1, Vector128<ulong> args2, Vector128<ulong> args3, Vector128<ulong> args4) args)

Parameters

athis IWVectorTraits128
back Vector128<ulong>

The background vector (背景向量).

vector0 Vector128<ulong>

The input vector 0 from which values are selected (从中选择值的输入向量0).

vector1 Vector128<ulong>

The input vector 1 from which values are selected (从中选择值的输入向量1).

args (Vector128<ulong> args0, Vector128<ulong> args1, Vector128<ulong> args2, Vector128<ulong> args3, Vector128<ulong> args4)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<ulong>

A new vector containing the values from input vectors selected by the given indices (一个新向量,其中包含给定 indices 从输入向量集中选择的值).

See Also