Table of Contents

Method YShuffleX4Kernel

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YShuffleX4Kernel(Vector<float>, Vector<float>, Vector<float>, Vector<float>, Vector<int>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<float> YShuffleX4Kernel(Vector<float> vector0, Vector<float> vector1, Vector<float> vector2, Vector<float> vector3, Vector<int> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<float>

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

vector3 Vector<float>

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

indices Vector<int>

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

Returns

Vector<float>

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

See Also

YShuffleX4Kernel(Vector<double>, Vector<double>, Vector<double>, Vector<double>, Vector<long>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<double> YShuffleX4Kernel(Vector<double> vector0, Vector<double> vector1, Vector<double> vector2, Vector<double> vector3, Vector<long> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<double>

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

vector3 Vector<double>

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

indices Vector<long>

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

Returns

Vector<double>

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

See Also

YShuffleX4Kernel(Vector<sbyte>, Vector<sbyte>, Vector<sbyte>, Vector<sbyte>, Vector<sbyte>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<sbyte> YShuffleX4Kernel(Vector<sbyte> vector0, Vector<sbyte> vector1, Vector<sbyte> vector2, Vector<sbyte> vector3, Vector<sbyte> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<sbyte>

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

vector3 Vector<sbyte>

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

indices Vector<sbyte>

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

Returns

Vector<sbyte>

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

See Also

YShuffleX4Kernel(Vector<byte>, Vector<byte>, Vector<byte>, Vector<byte>, Vector<byte>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<byte> YShuffleX4Kernel(Vector<byte> vector0, Vector<byte> vector1, Vector<byte> vector2, Vector<byte> vector3, Vector<byte> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<byte>

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

vector3 Vector<byte>

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

indices Vector<byte>

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

Returns

Vector<byte>

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

See Also

YShuffleX4Kernel(Vector<short>, Vector<short>, Vector<short>, Vector<short>, Vector<short>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<short> YShuffleX4Kernel(Vector<short> vector0, Vector<short> vector1, Vector<short> vector2, Vector<short> vector3, Vector<short> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<short>

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

vector3 Vector<short>

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

indices Vector<short>

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

Returns

Vector<short>

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

See Also

YShuffleX4Kernel(Vector<ushort>, Vector<ushort>, Vector<ushort>, Vector<ushort>, Vector<ushort>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<ushort> YShuffleX4Kernel(Vector<ushort> vector0, Vector<ushort> vector1, Vector<ushort> vector2, Vector<ushort> vector3, Vector<ushort> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<ushort>

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

vector3 Vector<ushort>

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

indices Vector<ushort>

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

Returns

Vector<ushort>

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

See Also

YShuffleX4Kernel(Vector<int>, Vector<int>, Vector<int>, Vector<int>, Vector<int>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<int> YShuffleX4Kernel(Vector<int> vector0, Vector<int> vector1, Vector<int> vector2, Vector<int> vector3, Vector<int> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<int>

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

vector3 Vector<int>

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

indices Vector<int>

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

Returns

Vector<int>

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

See Also

YShuffleX4Kernel(Vector<uint>, Vector<uint>, Vector<uint>, Vector<uint>, Vector<uint>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<uint> YShuffleX4Kernel(Vector<uint> vector0, Vector<uint> vector1, Vector<uint> vector2, Vector<uint> vector3, Vector<uint> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<uint>

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

vector3 Vector<uint>

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

indices Vector<uint>

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

Returns

Vector<uint>

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

See Also

YShuffleX4Kernel(Vector<long>, Vector<long>, Vector<long>, Vector<long>, Vector<long>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<long> YShuffleX4Kernel(Vector<long> vector0, Vector<long> vector1, Vector<long> vector2, Vector<long> vector3, Vector<long> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<long>

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

vector3 Vector<long>

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

indices Vector<long>

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

Returns

Vector<long>

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

See Also

YShuffleX4Kernel(Vector<ulong>, Vector<ulong>, Vector<ulong>, Vector<ulong>, Vector<ulong>)

Only shuffle on 4 vectors (在4个向量上进行仅换位). 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 IndexX4Mask to constrain the parameters (可使用 IndexX4Mask 掩码来约束参数). Mnemonic: rt[i] := element_ref(indices[i], vector0, vector1, vector2, vector3). Conditions: 0<=indices[i] && indices[i]<(Count*4).

Vector<ulong> YShuffleX4Kernel(Vector<ulong> vector0, Vector<ulong> vector1, Vector<ulong> vector2, Vector<ulong> vector3, Vector<ulong> indices)

Parameters

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 (从中选择值的输入向量1).

vector2 Vector<ulong>

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

vector3 Vector<ulong>

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

indices Vector<ulong>

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

Returns

Vector<ulong>

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

See Also