Table of Contents

Method YShuffleG4_Const

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YShuffleG4_Const(Vector<float>, ShuffleControlG4)

For each 4-element group 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 Vector<float> YShuffleG4_Const(Vector<float> source, ShuffleControlG4 control)

Parameters

source Vector<float>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<float>

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

See Also

YShuffleG4_Const(Vector<double>, ShuffleControlG4)

For each 4-element group 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 Vector<double> YShuffleG4_Const(Vector<double> source, ShuffleControlG4 control)

Parameters

source Vector<double>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<double>

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

See Also

YShuffleG4_Const(Vector<sbyte>, ShuffleControlG4)

For each 4-element group 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 Vector<sbyte> YShuffleG4_Const(Vector<sbyte> source, ShuffleControlG4 control)

Parameters

source Vector<sbyte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<sbyte>

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

See Also

YShuffleG4_Const(Vector<byte>, ShuffleControlG4)

For each 4-element group 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 Vector<byte> YShuffleG4_Const(Vector<byte> source, ShuffleControlG4 control)

Parameters

source Vector<byte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<byte>

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

See Also

YShuffleG4_Const(Vector<short>, ShuffleControlG4)

For each 4-element group 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 Vector<short> YShuffleG4_Const(Vector<short> source, ShuffleControlG4 control)

Parameters

source Vector<short>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<short>

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

See Also

YShuffleG4_Const(Vector<ushort>, ShuffleControlG4)

For each 4-element group 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 Vector<ushort> YShuffleG4_Const(Vector<ushort> source, ShuffleControlG4 control)

Parameters

source Vector<ushort>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<ushort>

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

See Also

YShuffleG4_Const(Vector<int>, ShuffleControlG4)

For each 4-element group 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 Vector<int> YShuffleG4_Const(Vector<int> source, ShuffleControlG4 control)

Parameters

source Vector<int>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<int>

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

See Also

YShuffleG4_Const(Vector<uint>, ShuffleControlG4)

For each 4-element group 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 Vector<uint> YShuffleG4_Const(Vector<uint> source, ShuffleControlG4 control)

Parameters

source Vector<uint>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<uint>

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

See Also

YShuffleG4_Const(Vector<long>, ShuffleControlG4)

For each 4-element group 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 Vector<long> YShuffleG4_Const(Vector<long> source, ShuffleControlG4 control)

Parameters

source Vector<long>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<long>

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

See Also

YShuffleG4_Const(Vector<ulong>, ShuffleControlG4)

For each 4-element group 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 Vector<ulong> YShuffleG4_Const(Vector<ulong> source, ShuffleControlG4 control)

Parameters

source Vector<ulong>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector<ulong>

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

See Also