Table of Contents

Method YShuffleKernel_Core

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YShuffleKernel_Core<T, TIdx>(IWVectorTraits128, Vector128<T>, (Vector128<TIdx> args0, Vector128<TIdx> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[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> YShuffleKernel_Core<T, TIdx>(this IWVectorTraits128 athis, Vector128<T> vector, (Vector128<TIdx> args0, Vector128<TIdx> args1) args) where T : struct where TIdx : struct

Parameters

athis IWVectorTraits128

This object.

vector Vector128<T>

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

args (Vector128<TIdx> args0, Vector128<TIdx> args1)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<T>

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

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

YShuffleKernel_Core(IWVectorTraits128, Vector128<float>, (Vector128<int> args0, Vector128<int> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<float> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<float> vector, (Vector128<int> args0, Vector128<int> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<float>

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

args (Vector128<int> Lower, Vector128<int> Upper)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<float>

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

See Also

YShuffleKernel_Core(IWVectorTraits128, Vector128<double>, (Vector128<long> args0, Vector128<long> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<double> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<double> vector, (Vector128<long> args0, Vector128<long> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<double>

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

args (Vector128<long> Lower, Vector128<long> Upper)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<double>

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

See Also

YShuffleKernel_Core(IWVectorTraits128, Vector128<sbyte>, (Vector128<sbyte> args0, Vector128<sbyte> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<sbyte> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<sbyte> vector, (Vector128<sbyte> args0, Vector128<sbyte> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<sbyte>

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

args (Vector128<sbyte> args0, Vector128<sbyte> args1)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<sbyte>

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

See Also

YShuffleKernel_Core(IWVectorTraits128, Vector128<byte>, (Vector128<byte> args0, Vector128<byte> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<byte> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<byte> vector, (Vector128<byte> args0, Vector128<byte> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<byte>

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

args (Vector128<byte> args0, Vector128<byte> args1)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<byte>

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

See Also

YShuffleKernel_Core(IWVectorTraits128, Vector128<short>, (Vector128<short> args0, Vector128<short> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<short> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<short> vector, (Vector128<short> args0, Vector128<short> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<short>

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

args (Vector128<short> Lower, Vector128<short> Upper)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<short>

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

See Also

YShuffleKernel_Core(IWVectorTraits128, Vector128<ushort>, (Vector128<ushort> args0, Vector128<ushort> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<ushort> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<ushort> vector, (Vector128<ushort> args0, Vector128<ushort> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<ushort>

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

args (Vector128<ushort> Lower, Vector128<ushort> Upper)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<ushort>

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

See Also

YShuffleKernel_Core(IWVectorTraits128, Vector128<int>, (Vector128<int> args0, Vector128<int> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<int> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<int> vector, (Vector128<int> args0, Vector128<int> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<int>

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

args (Vector128<int> Lower, Vector128<int> Upper)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<int>

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

See Also

YShuffleKernel_Core(IWVectorTraits128, Vector128<uint>, (Vector128<uint> args0, Vector128<uint> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<uint> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<uint> vector, (Vector128<uint> args0, Vector128<uint> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<uint>

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

args (Vector128<uint> Lower, Vector128<uint> Upper)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<uint>

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

See Also

YShuffleKernel_Core(IWVectorTraits128, Vector128<long>, (Vector128<long> args0, Vector128<long> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<long> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<long> vector, (Vector128<long> args0, Vector128<long> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<long>

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

args (Vector128<long> Lower, Vector128<long> Upper)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<long>

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

See Also

YShuffleKernel_Core(IWVectorTraits128, Vector128<ulong>, (Vector128<ulong> args0, Vector128<ulong> args1))

Core calculation for only shuffle (仅换位的核心计算). Its arguments are derived from YShuffleKernel_Args (其参数来源于 YShuffleKernel_Args). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<ulong> YShuffleKernel_Core(this IWVectorTraits128 athis, Vector128<ulong> vector, (Vector128<ulong> args0, Vector128<ulong> args1) args)

Parameters

athis IWVectorTraits128
vector Vector128<ulong>

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

args (Vector128<ulong> Lower, Vector128<ulong> Upper)

The arguments(参数). Derived from YShuffleKernel_Args .

Returns

Vector128<ulong>

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

See Also