Table of Contents

Method YShuffleKernel

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YShuffleKernel(Vector128<float>, Vector128<int>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

public static Vector128<float> YShuffleKernel(Vector128<float> vector, Vector128<int> indices)

Parameters

vector Vector128<float>

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

indices Vector128<int>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<float>

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

See Also

YShuffleKernel(Vector128<double>, Vector128<long>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

public static Vector128<double> YShuffleKernel(Vector128<double> vector, Vector128<long> indices)

Parameters

vector Vector128<double>

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

indices Vector128<long>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<double>

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

See Also

YShuffleKernel(Vector128<sbyte>, Vector128<sbyte>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<sbyte> YShuffleKernel(Vector128<sbyte> vector, Vector128<sbyte> indices)

Parameters

vector Vector128<sbyte>

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

indices Vector128<sbyte>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<sbyte>

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

See Also

YShuffleKernel(Vector128<byte>, Vector128<byte>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

public static Vector128<byte> YShuffleKernel(Vector128<byte> vector, Vector128<byte> indices)

Parameters

vector Vector128<byte>

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

indices Vector128<byte>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<byte>

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

See Also

YShuffleKernel(Vector128<short>, Vector128<short>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

public static Vector128<short> YShuffleKernel(Vector128<short> vector, Vector128<short> indices)

Parameters

vector Vector128<short>

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

indices Vector128<short>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<short>

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

See Also

YShuffleKernel(Vector128<ushort>, Vector128<ushort>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<ushort> YShuffleKernel(Vector128<ushort> vector, Vector128<ushort> indices)

Parameters

vector Vector128<ushort>

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

indices Vector128<ushort>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<ushort>

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

See Also

YShuffleKernel(Vector128<int>, Vector128<int>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

public static Vector128<int> YShuffleKernel(Vector128<int> vector, Vector128<int> indices)

Parameters

vector Vector128<int>

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

indices Vector128<int>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<int>

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

See Also

YShuffleKernel(Vector128<uint>, Vector128<uint>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<uint> YShuffleKernel(Vector128<uint> vector, Vector128<uint> indices)

Parameters

vector Vector128<uint>

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

indices Vector128<uint>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<uint>

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

See Also

YShuffleKernel(Vector128<long>, Vector128<long>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

public static Vector128<long> YShuffleKernel(Vector128<long> vector, Vector128<long> indices)

Parameters

vector Vector128<long>

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

indices Vector128<long>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<long>

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

See Also

YShuffleKernel(Vector128<ulong>, Vector128<ulong>)

Only shuffle (仅换位). Creates a new vector by selecting values from an input vector using a set of indices (通过使用一组索引从输入向量中选择值,来创建一个新向量). If the index value is out of range, the result is undefined (若索引值超出范围, 结果是未定义的). You can use the IndexMask to constrain the parameters (可使用 IndexMask 掩码来约束参数). Mnemonic: rt[i] := vector[indices[i]]. Conditions: 0<=indices[i] && indices[i]<Count.

[CLSCompliant(false)]
public static Vector128<ulong> YShuffleKernel(Vector128<ulong> vector, Vector128<ulong> indices)

Parameters

vector Vector128<ulong>

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

indices Vector128<ulong>

The per-element indices used to select a value from vector (用于从 vector 中选择值的每个元素索引).

Returns

Vector128<ulong>

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

See Also