Table of Contents

Method YShuffleX2Kernel

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YShuffleX2Kernel(Vector256<float>, Vector256<float>, Vector256<int>)

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

public static Vector256<float> YShuffleX2Kernel(Vector256<float> vector0, Vector256<float> vector1, Vector256<int> indices)

Parameters

vector0 Vector256<float>

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

vector1 Vector256<float>

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

indices Vector256<int>

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

Returns

Vector256<float>

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

See Also

YShuffleX2Kernel(Vector256<double>, Vector256<double>, Vector256<long>)

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

public static Vector256<double> YShuffleX2Kernel(Vector256<double> vector0, Vector256<double> vector1, Vector256<long> indices)

Parameters

vector0 Vector256<double>

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

vector1 Vector256<double>

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

indices Vector256<long>

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

Returns

Vector256<double>

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

See Also

YShuffleX2Kernel(Vector256<sbyte>, Vector256<sbyte>, Vector256<sbyte>)

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

[CLSCompliant(false)]
public static Vector256<sbyte> YShuffleX2Kernel(Vector256<sbyte> vector0, Vector256<sbyte> vector1, Vector256<sbyte> indices)

Parameters

vector0 Vector256<sbyte>

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

vector1 Vector256<sbyte>

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

indices Vector256<sbyte>

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

Returns

Vector256<sbyte>

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

See Also

YShuffleX2Kernel(Vector256<byte>, Vector256<byte>, Vector256<byte>)

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

public static Vector256<byte> YShuffleX2Kernel(Vector256<byte> vector0, Vector256<byte> vector1, Vector256<byte> indices)

Parameters

vector0 Vector256<byte>

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

vector1 Vector256<byte>

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

indices Vector256<byte>

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

Returns

Vector256<byte>

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

See Also

YShuffleX2Kernel(Vector256<short>, Vector256<short>, Vector256<short>)

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

public static Vector256<short> YShuffleX2Kernel(Vector256<short> vector0, Vector256<short> vector1, Vector256<short> indices)

Parameters

vector0 Vector256<short>

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

vector1 Vector256<short>

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

indices Vector256<short>

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

Returns

Vector256<short>

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

See Also

YShuffleX2Kernel(Vector256<ushort>, Vector256<ushort>, Vector256<ushort>)

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

[CLSCompliant(false)]
public static Vector256<ushort> YShuffleX2Kernel(Vector256<ushort> vector0, Vector256<ushort> vector1, Vector256<ushort> indices)

Parameters

vector0 Vector256<ushort>

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

vector1 Vector256<ushort>

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

indices Vector256<ushort>

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

Returns

Vector256<ushort>

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

See Also

YShuffleX2Kernel(Vector256<int>, Vector256<int>, Vector256<int>)

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

public static Vector256<int> YShuffleX2Kernel(Vector256<int> vector0, Vector256<int> vector1, Vector256<int> indices)

Parameters

vector0 Vector256<int>

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

vector1 Vector256<int>

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

indices Vector256<int>

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

Returns

Vector256<int>

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

See Also

YShuffleX2Kernel(Vector256<uint>, Vector256<uint>, Vector256<uint>)

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

[CLSCompliant(false)]
public static Vector256<uint> YShuffleX2Kernel(Vector256<uint> vector0, Vector256<uint> vector1, Vector256<uint> indices)

Parameters

vector0 Vector256<uint>

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

vector1 Vector256<uint>

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

indices Vector256<uint>

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

Returns

Vector256<uint>

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

See Also

YShuffleX2Kernel(Vector256<long>, Vector256<long>, Vector256<long>)

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

public static Vector256<long> YShuffleX2Kernel(Vector256<long> vector0, Vector256<long> vector1, Vector256<long> indices)

Parameters

vector0 Vector256<long>

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

vector1 Vector256<long>

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

indices Vector256<long>

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

Returns

Vector256<long>

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

See Also

YShuffleX2Kernel(Vector256<ulong>, Vector256<ulong>, Vector256<ulong>)

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

[CLSCompliant(false)]
public static Vector256<ulong> YShuffleX2Kernel(Vector256<ulong> vector0, Vector256<ulong> vector1, Vector256<ulong> indices)

Parameters

vector0 Vector256<ulong>

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

vector1 Vector256<ulong>

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

indices Vector256<ulong>

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

Returns

Vector256<ulong>

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

See Also