Table of Contents

Method YShuffleX4Kernel_Core

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YShuffleX4Kernel_Core<T, TIdx>(IVectorTraits, Vector<T>, Vector<T>, Vector<T>, Vector<T>, (Vector<TIdx> args0, Vector<TIdx> args1, Vector<TIdx> args2, Vector<TIdx> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[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> YShuffleX4Kernel_Core<T, TIdx>(this IVectorTraits athis, Vector<T> vector0, Vector<T> vector1, Vector<T> vector2, Vector<T> vector3, (Vector<TIdx> args0, Vector<TIdx> args1, Vector<TIdx> args2, Vector<TIdx> args3) args) where T : struct where TIdx : struct

Parameters

athis IVectorTraits

This 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).

vector2 Vector<T>

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

vector3 Vector<T>

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

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

YShuffleX4Kernel_Core(IVectorTraits, Vector<float>, Vector<float>, Vector<float>, Vector<float>, (Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<float> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<float> vector0, Vector<float> vector1, Vector<float> vector2, Vector<float> vector3, (Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<float>

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

vector1 Vector<float>

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

vector2 Vector<float>

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

vector3 Vector<float>

The input vector 3 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

YShuffleX4Kernel_Core(IVectorTraits, Vector<double>, Vector<double>, Vector<double>, Vector<double>, (Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<double> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<double> vector0, Vector<double> vector1, Vector<double> vector2, Vector<double> vector3, (Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<double>

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

vector1 Vector<double>

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

vector2 Vector<double>

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

vector3 Vector<double>

The input vector 3 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

YShuffleX4Kernel_Core(IVectorTraits, Vector<sbyte>, Vector<sbyte>, Vector<sbyte>, Vector<sbyte>, (Vector<sbyte> args0, Vector<sbyte> args1, Vector<sbyte> args2, Vector<sbyte> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<sbyte> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<sbyte> vector0, Vector<sbyte> vector1, Vector<sbyte> vector2, Vector<sbyte> vector3, (Vector<sbyte> args0, Vector<sbyte> args1, Vector<sbyte> args2, Vector<sbyte> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<sbyte>

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

vector1 Vector<sbyte>

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

vector2 Vector<sbyte>

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

vector3 Vector<sbyte>

The input vector 3 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

YShuffleX4Kernel_Core(IVectorTraits, Vector<byte>, Vector<byte>, Vector<byte>, Vector<byte>, (Vector<byte> args0, Vector<byte> args1, Vector<byte> args2, Vector<byte> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<byte> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<byte> vector0, Vector<byte> vector1, Vector<byte> vector2, Vector<byte> vector3, (Vector<byte> args0, Vector<byte> args1, Vector<byte> args2, Vector<byte> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<byte>

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

vector1 Vector<byte>

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

vector2 Vector<byte>

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

vector3 Vector<byte>

The input vector 3 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

YShuffleX4Kernel_Core(IVectorTraits, Vector<short>, Vector<short>, Vector<short>, Vector<short>, (Vector<short> args0, Vector<short> args1, Vector<short> args2, Vector<short> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<short> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<short> vector0, Vector<short> vector1, Vector<short> vector2, Vector<short> vector3, (Vector<short> args0, Vector<short> args1, Vector<short> args2, Vector<short> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<short>

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

vector1 Vector<short>

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

vector2 Vector<short>

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

vector3 Vector<short>

The input vector 3 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

YShuffleX4Kernel_Core(IVectorTraits, Vector<ushort>, Vector<ushort>, Vector<ushort>, Vector<ushort>, (Vector<ushort> args0, Vector<ushort> args1, Vector<ushort> args2, Vector<ushort> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<ushort> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<ushort> vector0, Vector<ushort> vector1, Vector<ushort> vector2, Vector<ushort> vector3, (Vector<ushort> args0, Vector<ushort> args1, Vector<ushort> args2, Vector<ushort> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<ushort>

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

vector1 Vector<ushort>

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

vector2 Vector<ushort>

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

vector3 Vector<ushort>

The input vector 3 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

YShuffleX4Kernel_Core(IVectorTraits, Vector<int>, Vector<int>, Vector<int>, Vector<int>, (Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<int> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<int> vector0, Vector<int> vector1, Vector<int> vector2, Vector<int> vector3, (Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<int>

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

vector1 Vector<int>

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

vector2 Vector<int>

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

vector3 Vector<int>

The input vector 3 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

YShuffleX4Kernel_Core(IVectorTraits, Vector<uint>, Vector<uint>, Vector<uint>, Vector<uint>, (Vector<uint> args0, Vector<uint> args1, Vector<uint> args2, Vector<uint> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<uint> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<uint> vector0, Vector<uint> vector1, Vector<uint> vector2, Vector<uint> vector3, (Vector<uint> args0, Vector<uint> args1, Vector<uint> args2, Vector<uint> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<uint>

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

vector1 Vector<uint>

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

vector2 Vector<uint>

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

vector3 Vector<uint>

The input vector 3 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

YShuffleX4Kernel_Core(IVectorTraits, Vector<long>, Vector<long>, Vector<long>, Vector<long>, (Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<long> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<long> vector0, Vector<long> vector1, Vector<long> vector2, Vector<long> vector3, (Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<long>

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

vector1 Vector<long>

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

vector2 Vector<long>

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

vector3 Vector<long>

The input vector 3 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

YShuffleX4Kernel_Core(IVectorTraits, Vector<ulong>, Vector<ulong>, Vector<ulong>, Vector<ulong>, (Vector<ulong> args0, Vector<ulong> args1, Vector<ulong> args2, Vector<ulong> args3))

Core calculation for only shuffle on 4 vectors (在4个向量上进行仅换位的核心计算). Its arguments are derived from YShuffleX4Kernel_Args (其参数来源于 YShuffleX4Kernel_Args). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

[CLSCompliant(false)]
public static Vector<ulong> YShuffleX4Kernel_Core(this IVectorTraits athis, Vector<ulong> vector0, Vector<ulong> vector1, Vector<ulong> vector2, Vector<ulong> vector3, (Vector<ulong> args0, Vector<ulong> args1, Vector<ulong> args2, Vector<ulong> args3) args)

Parameters

athis IVectorTraits
vector0 Vector<ulong>

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

vector1 Vector<ulong>

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

vector2 Vector<ulong>

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

vector3 Vector<ulong>

The input vector 3 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 .

Returns

Vector<ulong>

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

See Also