Method YShuffleG4X2
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YShuffleG4X2<T>(Vector256<T>, Vector256<T>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[Obsolete("It is only suitable for unit testing because it contains branching statements and has poor performance. In general, it is recommended to use the non-generic version of the methods (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
public static (Vector256<T> Result0, Vector256<T> Result1) YShuffleG4X2<T>(Vector256<T> source0, Vector256<T> source1, ShuffleControlG4 control) where T : struct
Parameters
source0
Vector256<T>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<T>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
- See Also
YShuffleG4X2(Vector256<float>, Vector256<float>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector256<float> Result0, Vector256<float> Result1) YShuffleG4X2(Vector256<float> source0, Vector256<float> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<float>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<float>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- (Vector256<float> Result0, Vector256<float> Result1)
Returns the two vectors after shuffle (返回换位后的两个向量).
- See Also
YShuffleG4X2(Vector256<double>, Vector256<double>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector256<double> Result0, Vector256<double> Result1) YShuffleG4X2(Vector256<double> source0, Vector256<double> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<double>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<double>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- (Vector256<double> Lower, Vector256<double> Upper)
Returns the two vectors after shuffle (返回换位后的两个向量).
- See Also
YShuffleG4X2(Vector256<sbyte>, Vector256<sbyte>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static (Vector256<sbyte> Result0, Vector256<sbyte> Result1) YShuffleG4X2(Vector256<sbyte> source0, Vector256<sbyte> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<sbyte>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<sbyte>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- (Vector256<sbyte> args0, Vector256<sbyte> args1)
Returns the two vectors after shuffle (返回换位后的两个向量).
- See Also
YShuffleG4X2(Vector256<byte>, Vector256<byte>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector256<byte> Result0, Vector256<byte> Result1) YShuffleG4X2(Vector256<byte> source0, Vector256<byte> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<byte>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<byte>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2(Vector256<short>, Vector256<short>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector256<short> Result0, Vector256<short> Result1) YShuffleG4X2(Vector256<short> source0, Vector256<short> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<short>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<short>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- (Vector256<short> Lower, Vector256<short> Upper)
Returns the two vectors after shuffle (返回换位后的两个向量).
- See Also
YShuffleG4X2(Vector256<ushort>, Vector256<ushort>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static (Vector256<ushort> Result0, Vector256<ushort> Result1) YShuffleG4X2(Vector256<ushort> source0, Vector256<ushort> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<ushort>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<ushort>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- (Vector256<ushort> Lower, Vector256<ushort> Upper)
Returns the two vectors after shuffle (返回换位后的两个向量).
- See Also
YShuffleG4X2(Vector256<int>, Vector256<int>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector256<int> Result0, Vector256<int> Result1) YShuffleG4X2(Vector256<int> source0, Vector256<int> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<int>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<int>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2(Vector256<uint>, Vector256<uint>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static (Vector256<uint> Result0, Vector256<uint> Result1) YShuffleG4X2(Vector256<uint> source0, Vector256<uint> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<uint>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<uint>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2(Vector256<long>, Vector256<long>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector256<long> Result0, Vector256<long> Result1) YShuffleG4X2(Vector256<long> source0, Vector256<long> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<long>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<long>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2(Vector256<ulong>, Vector256<ulong>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static (Vector256<ulong> Result0, Vector256<ulong> Result1) YShuffleG4X2(Vector256<ulong> source0, Vector256<ulong> source1, ShuffleControlG4 control)
Parameters
source0
Vector256<ulong>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<ulong>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- (Vector256<ulong> Lower, Vector256<ulong> Upper)
Returns the two vectors after shuffle (返回换位后的两个向量).
- See Also
YShuffleG4X2(Vector256<float>, Vector256<float>, ShuffleControlG4, out Vector256<float>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector256<float> YShuffleG4X2(Vector256<float> source0, Vector256<float> source1, ShuffleControlG4 control, out Vector256<float> result1)
Parameters
source0
Vector256<float>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<float>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<float>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2(Vector256<double>, Vector256<double>, ShuffleControlG4, out Vector256<double>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector256<double> YShuffleG4X2(Vector256<double> source0, Vector256<double> source1, ShuffleControlG4 control, out Vector256<double> result1)
Parameters
source0
Vector256<double>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<double>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<double>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2(Vector256<sbyte>, Vector256<sbyte>, ShuffleControlG4, out Vector256<sbyte>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static Vector256<sbyte> YShuffleG4X2(Vector256<sbyte> source0, Vector256<sbyte> source1, ShuffleControlG4 control, out Vector256<sbyte> result1)
Parameters
source0
Vector256<sbyte>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<sbyte>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<sbyte>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2(Vector256<byte>, Vector256<byte>, ShuffleControlG4, out Vector256<byte>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector256<byte> YShuffleG4X2(Vector256<byte> source0, Vector256<byte> source1, ShuffleControlG4 control, out Vector256<byte> result1)
Parameters
source0
Vector256<byte>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<byte>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<byte>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2(Vector256<short>, Vector256<short>, ShuffleControlG4, out Vector256<short>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector256<short> YShuffleG4X2(Vector256<short> source0, Vector256<short> source1, ShuffleControlG4 control, out Vector256<short> result1)
Parameters
source0
Vector256<short>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<short>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<short>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2(Vector256<ushort>, Vector256<ushort>, ShuffleControlG4, out Vector256<ushort>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static Vector256<ushort> YShuffleG4X2(Vector256<ushort> source0, Vector256<ushort> source1, ShuffleControlG4 control, out Vector256<ushort> result1)
Parameters
source0
Vector256<ushort>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<ushort>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<ushort>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2(Vector256<int>, Vector256<int>, ShuffleControlG4, out Vector256<int>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector256<int> YShuffleG4X2(Vector256<int> source0, Vector256<int> source1, ShuffleControlG4 control, out Vector256<int> result1)
Parameters
source0
Vector256<int>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<int>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<int>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2(Vector256<uint>, Vector256<uint>, ShuffleControlG4, out Vector256<uint>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static Vector256<uint> YShuffleG4X2(Vector256<uint> source0, Vector256<uint> source1, ShuffleControlG4 control, out Vector256<uint> result1)
Parameters
source0
Vector256<uint>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<uint>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<uint>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2(Vector256<long>, Vector256<long>, ShuffleControlG4, out Vector256<long>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector256<long> YShuffleG4X2(Vector256<long> source0, Vector256<long> source1, ShuffleControlG4 control, out Vector256<long> result1)
Parameters
source0
Vector256<long>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<long>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<long>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2(Vector256<ulong>, Vector256<ulong>, ShuffleControlG4, out Vector256<ulong>)
For each 4-element groups in two vector, shuffle is performed (对于两个向量中的每个 4-元素组, 进行换位).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static Vector256<ulong> YShuffleG4X2(Vector256<ulong> source0, Vector256<ulong> source1, ShuffleControlG4 control, out Vector256<ulong> result1)
Parameters
source0
Vector256<ulong>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector256<ulong>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector256<ulong>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also