Method YShuffleG2
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YShuffleG2(Vector<float>, ShuffleControlG2)
For each 2-element group 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 Vector<float> YShuffleG2(Vector<float> source, ShuffleControlG2 control)
Parameters
source
Vector<float>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<float>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector<double>, ShuffleControlG2)
For each 2-element group 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 Vector<double> YShuffleG2(Vector<double> source, ShuffleControlG2 control)
Parameters
source
Vector<double>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<double>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector<sbyte>, ShuffleControlG2)
For each 2-element group 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 Vector<sbyte> YShuffleG2(Vector<sbyte> source, ShuffleControlG2 control)
Parameters
source
Vector<sbyte>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<sbyte>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector<byte>, ShuffleControlG2)
For each 2-element group 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 Vector<byte> YShuffleG2(Vector<byte> source, ShuffleControlG2 control)
Parameters
source
Vector<byte>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<byte>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector<short>, ShuffleControlG2)
For each 2-element group 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 Vector<short> YShuffleG2(Vector<short> source, ShuffleControlG2 control)
Parameters
source
Vector<short>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<short>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector<ushort>, ShuffleControlG2)
For each 2-element group 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 Vector<ushort> YShuffleG2(Vector<ushort> source, ShuffleControlG2 control)
Parameters
source
Vector<ushort>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<ushort>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector<int>, ShuffleControlG2)
For each 2-element group 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 Vector<int> YShuffleG2(Vector<int> source, ShuffleControlG2 control)
Parameters
source
Vector<int>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<int>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector<uint>, ShuffleControlG2)
For each 2-element group 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 Vector<uint> YShuffleG2(Vector<uint> source, ShuffleControlG2 control)
Parameters
source
Vector<uint>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<uint>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector<long>, ShuffleControlG2)
For each 2-element group 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 Vector<long> YShuffleG2(Vector<long> source, ShuffleControlG2 control)
Parameters
source
Vector<long>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<long>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also
YShuffleG2(Vector<ulong>, ShuffleControlG2)
For each 2-element group 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 Vector<ulong> YShuffleG2(Vector<ulong> source, ShuffleControlG2 control)
Parameters
source
Vector<ulong>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector<ulong>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also