Method YGroup2Transpose
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YGroup2Transpose<T>(Vector128<T>, Vector128<T>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
[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 (Vector128<T> Result0, Vector128<T> Result1) YGroup2Transpose<T>(Vector128<T> data0, Vector128<T> data1) where T : struct
Parameters
data0
Vector128<T>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<T>Part 1 of the vector data (向量数据的第1部分).
Returns
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
YGroup2Transpose(Vector128<float>, Vector128<float>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static (Vector128<float> Result0, Vector128<float> Result1) YGroup2Transpose(Vector128<float> data0, Vector128<float> data1)
Parameters
data0
Vector128<float>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<float>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<double>, Vector128<double>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static (Vector128<double> Result0, Vector128<double> Result1) YGroup2Transpose(Vector128<double> data0, Vector128<double> data1)
Parameters
data0
Vector128<double>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<double>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<sbyte>, Vector128<sbyte>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
[CLSCompliant(false)]
public static (Vector128<sbyte> Result0, Vector128<sbyte> Result1) YGroup2Transpose(Vector128<sbyte> data0, Vector128<sbyte> data1)
Parameters
data0
Vector128<sbyte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<sbyte>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<byte>, Vector128<byte>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static (Vector128<byte> Result0, Vector128<byte> Result1) YGroup2Transpose(Vector128<byte> data0, Vector128<byte> data1)
Parameters
data0
Vector128<byte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<byte>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<short>, Vector128<short>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static (Vector128<short> Result0, Vector128<short> Result1) YGroup2Transpose(Vector128<short> data0, Vector128<short> data1)
Parameters
data0
Vector128<short>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<short>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<ushort>, Vector128<ushort>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
[CLSCompliant(false)]
public static (Vector128<ushort> Result0, Vector128<ushort> Result1) YGroup2Transpose(Vector128<ushort> data0, Vector128<ushort> data1)
Parameters
data0
Vector128<ushort>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<ushort>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<int>, Vector128<int>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static (Vector128<int> Result0, Vector128<int> Result1) YGroup2Transpose(Vector128<int> data0, Vector128<int> data1)
Parameters
data0
Vector128<int>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<int>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<uint>, Vector128<uint>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
[CLSCompliant(false)]
public static (Vector128<uint> Result0, Vector128<uint> Result1) YGroup2Transpose(Vector128<uint> data0, Vector128<uint> data1)
Parameters
data0
Vector128<uint>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<uint>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<long>, Vector128<long>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static (Vector128<long> Result0, Vector128<long> Result1) YGroup2Transpose(Vector128<long> data0, Vector128<long> data1)
Parameters
data0
Vector128<long>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<long>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<ulong>, Vector128<ulong>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
[CLSCompliant(false)]
public static (Vector128<ulong> Result0, Vector128<ulong> Result1) YGroup2Transpose(Vector128<ulong> data0, Vector128<ulong> data1)
Parameters
data0
Vector128<ulong>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<ulong>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector128<float>, Vector128<float>, out Vector128<float>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static Vector128<float> YGroup2Transpose(Vector128<float> data0, Vector128<float> data1, out Vector128<float> result1)
Parameters
data0
Vector128<float>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<float>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<float>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector128<double>, Vector128<double>, out Vector128<double>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static Vector128<double> YGroup2Transpose(Vector128<double> data0, Vector128<double> data1, out Vector128<double> result1)
Parameters
data0
Vector128<double>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<double>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<double>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector128<sbyte>, Vector128<sbyte>, out Vector128<sbyte>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
[CLSCompliant(false)]
public static Vector128<sbyte> YGroup2Transpose(Vector128<sbyte> data0, Vector128<sbyte> data1, out Vector128<sbyte> result1)
Parameters
data0
Vector128<sbyte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<sbyte>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<sbyte>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector128<byte>, Vector128<byte>, out Vector128<byte>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static Vector128<byte> YGroup2Transpose(Vector128<byte> data0, Vector128<byte> data1, out Vector128<byte> result1)
Parameters
data0
Vector128<byte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<byte>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<byte>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector128<short>, Vector128<short>, out Vector128<short>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static Vector128<short> YGroup2Transpose(Vector128<short> data0, Vector128<short> data1, out Vector128<short> result1)
Parameters
data0
Vector128<short>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<short>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<short>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector128<ushort>, Vector128<ushort>, out Vector128<ushort>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
[CLSCompliant(false)]
public static Vector128<ushort> YGroup2Transpose(Vector128<ushort> data0, Vector128<ushort> data1, out Vector128<ushort> result1)
Parameters
data0
Vector128<ushort>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<ushort>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<ushort>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector128<int>, Vector128<int>, out Vector128<int>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static Vector128<int> YGroup2Transpose(Vector128<int> data0, Vector128<int> data1, out Vector128<int> result1)
Parameters
data0
Vector128<int>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<int>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<int>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector128<uint>, Vector128<uint>, out Vector128<uint>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
[CLSCompliant(false)]
public static Vector128<uint> YGroup2Transpose(Vector128<uint> data0, Vector128<uint> data1, out Vector128<uint> result1)
Parameters
data0
Vector128<uint>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<uint>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<uint>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector128<long>, Vector128<long>, out Vector128<long>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
public static Vector128<long> YGroup2Transpose(Vector128<long> data0, Vector128<long> data1, out Vector128<long> result1)
Parameters
data0
Vector128<long>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<long>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<long>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector128<ulong>, Vector128<ulong>, out Vector128<ulong>)
Transpose a 22 matrix (对22矩阵进行转置).
Mnemonic: result0[i] := (0==(i&1))?( x[i&~1] ):( y[i&~1] )
, result1[i] := (0==(i&1))?( x[(i&~1) + 1] ):( y[(i&~1) + 1] )
.
[CLSCompliant(false)]
public static Vector128<ulong> YGroup2Transpose(Vector128<ulong> data0, Vector128<ulong> data1, out Vector128<ulong> result1)
Parameters
data0
Vector128<ulong>Part 0 of the vector data (向量数据的第0部分).
data1
Vector128<ulong>Part 1 of the vector data (向量数据的第1部分).
result1
Vector128<ulong>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also