Method YShuffleG4
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YShuffleG4(Vector<float>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<float> source, ShuffleControlG4 control)
Parameters
source
Vector<float>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<float>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG4(Vector<double>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<double> source, ShuffleControlG4 control)
Parameters
source
Vector<double>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<double>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
Exceptions
- NotSupportedException
The count of elements in a vector cannot be less than 4! Please use YShuffleG4X2 instead (向量的元素数量不能小于4! 请使用 YShuffleG4X2 代替).
- See Also
YShuffleG4(Vector<sbyte>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<sbyte> source, ShuffleControlG4 control)
Parameters
source
Vector<sbyte>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<sbyte>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG4(Vector<byte>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<byte> source, ShuffleControlG4 control)
Parameters
source
Vector<byte>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<byte>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG4(Vector<short>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<short> source, ShuffleControlG4 control)
Parameters
source
Vector<short>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<short>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG4(Vector<ushort>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<ushort> source, ShuffleControlG4 control)
Parameters
source
Vector<ushort>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<ushort>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG4(Vector<int>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<int> source, ShuffleControlG4 control)
Parameters
source
Vector<int>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<int>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG4(Vector<uint>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<uint> source, ShuffleControlG4 control)
Parameters
source
Vector<uint>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<uint>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG4(Vector<long>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<long> source, ShuffleControlG4 control)
Parameters
source
Vector<long>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<long>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
Exceptions
- NotSupportedException
The count of elements in a vector cannot be less than 4! Please use YShuffleG4X2 instead (向量的元素数量不能小于4! 请使用 YShuffleG4X2 代替).
- See Also
YShuffleG4(Vector<ulong>, ShuffleControlG4)
For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替).
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(Vector<ulong> source, ShuffleControlG4 control)
Parameters
source
Vector<ulong>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- Vector<ulong>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
Exceptions
- NotSupportedException
The count of elements in a vector cannot be less than 4! Please use YShuffleG4X2 instead (向量的元素数量不能小于4! 请使用 YShuffleG4X2 代替).
- See Also