Method YShuffleG2
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YShuffleG2(Vector256<float>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
public static Vector256<float> YShuffleG2(Vector256<float> source, ShuffleControlG2 control)
Parameters
source
Vector256<float>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<float>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector256<double>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
public static Vector256<double> YShuffleG2(Vector256<double> source, ShuffleControlG2 control)
Parameters
source
Vector256<double>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<double>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector256<sbyte>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
[CLSCompliant(false)]
public static Vector256<sbyte> YShuffleG2(Vector256<sbyte> source, ShuffleControlG2 control)
Parameters
source
Vector256<sbyte>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<sbyte>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector256<byte>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
public static Vector256<byte> YShuffleG2(Vector256<byte> source, ShuffleControlG2 control)
Parameters
source
Vector256<byte>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<byte>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector256<short>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
public static Vector256<short> YShuffleG2(Vector256<short> source, ShuffleControlG2 control)
Parameters
source
Vector256<short>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<short>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector256<ushort>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
[CLSCompliant(false)]
public static Vector256<ushort> YShuffleG2(Vector256<ushort> source, ShuffleControlG2 control)
Parameters
source
Vector256<ushort>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<ushort>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector256<int>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
public static Vector256<int> YShuffleG2(Vector256<int> source, ShuffleControlG2 control)
Parameters
source
Vector256<int>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<int>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector256<uint>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
[CLSCompliant(false)]
public static Vector256<uint> YShuffleG2(Vector256<uint> source, ShuffleControlG2 control)
Parameters
source
Vector256<uint>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<uint>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector256<long>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
public static Vector256<long> YShuffleG2(Vector256<long> source, ShuffleControlG2 control)
Parameters
source
Vector256<long>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<long>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector256<ulong>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
[CLSCompliant(false)]
public static Vector256<ulong> YShuffleG2(Vector256<ulong> source, ShuffleControlG2 control)
Parameters
source
Vector256<ulong>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<ulong>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also