Table of Contents

Method YShuffleG4_Const

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YShuffleG4_Const(Vector256<float>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

public static Vector256<float> YShuffleG4_Const(Vector256<float> source, ShuffleControlG4 control)

Parameters

source Vector256<float>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<float>

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

See Also

YShuffleG4_Const(Vector256<double>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

public static Vector256<double> YShuffleG4_Const(Vector256<double> source, ShuffleControlG4 control)

Parameters

source Vector256<double>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<double>

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

See Also

YShuffleG4_Const(Vector256<sbyte>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

[CLSCompliant(false)]
public static Vector256<sbyte> YShuffleG4_Const(Vector256<sbyte> source, ShuffleControlG4 control)

Parameters

source Vector256<sbyte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<sbyte>

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

See Also

YShuffleG4_Const(Vector256<byte>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

public static Vector256<byte> YShuffleG4_Const(Vector256<byte> source, ShuffleControlG4 control)

Parameters

source Vector256<byte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<byte>

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

See Also

YShuffleG4_Const(Vector256<short>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

public static Vector256<short> YShuffleG4_Const(Vector256<short> source, ShuffleControlG4 control)

Parameters

source Vector256<short>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<short>

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

See Also

YShuffleG4_Const(Vector256<ushort>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

[CLSCompliant(false)]
public static Vector256<ushort> YShuffleG4_Const(Vector256<ushort> source, ShuffleControlG4 control)

Parameters

source Vector256<ushort>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<ushort>

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

See Also

YShuffleG4_Const(Vector256<int>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

public static Vector256<int> YShuffleG4_Const(Vector256<int> source, ShuffleControlG4 control)

Parameters

source Vector256<int>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<int>

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

See Also

YShuffleG4_Const(Vector256<uint>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

[CLSCompliant(false)]
public static Vector256<uint> YShuffleG4_Const(Vector256<uint> source, ShuffleControlG4 control)

Parameters

source Vector256<uint>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<uint>

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

See Also

YShuffleG4_Const(Vector256<long>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

public static Vector256<long> YShuffleG4_Const(Vector256<long> source, ShuffleControlG4 control)

Parameters

source Vector256<long>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<long>

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

See Also

YShuffleG4_Const(Vector256<ulong>, ShuffleControlG4)

For each 4-element groups in a vector, shuffle is performed - Constant version (对于一个向量中的每个 4-元素组, 进行换位 - 常量版). If the count of the vector is less than 4, please use YShuffleG4X2_Const instead (如果向量的数量小于4,请使用 YShuffleG4X2_Const 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

[CLSCompliant(false)]
public static Vector256<ulong> YShuffleG4_Const(Vector256<ulong> source, ShuffleControlG4 control)

Parameters

source Vector256<ulong>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector256<ulong>

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

See Also