Method YGroup2Transpose
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YGroup2Transpose<T>(Vector<T>, Vector<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 (Vector<T> Result0, Vector<T> Result1) YGroup2Transpose<T>(Vector<T> data0, Vector<T> data1) where T : struct
Parameters
data0
Vector<T>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<T>Part 1 of the vector data (向量数据的第1部分).
Returns
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
YGroup2Transpose(Vector<float>, Vector<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 (Vector<float> Result0, Vector<float> Result1) YGroup2Transpose(Vector<float> data0, Vector<float> data1)
Parameters
data0
Vector<float>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<float>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<double>, Vector<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 (Vector<double> Result0, Vector<double> Result1) YGroup2Transpose(Vector<double> data0, Vector<double> data1)
Parameters
data0
Vector<double>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<double>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<sbyte>, Vector<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 (Vector<sbyte> Result0, Vector<sbyte> Result1) YGroup2Transpose(Vector<sbyte> data0, Vector<sbyte> data1)
Parameters
data0
Vector<sbyte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<sbyte>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<byte>, Vector<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 (Vector<byte> Result0, Vector<byte> Result1) YGroup2Transpose(Vector<byte> data0, Vector<byte> data1)
Parameters
data0
Vector<byte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<byte>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<short>, Vector<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 (Vector<short> Result0, Vector<short> Result1) YGroup2Transpose(Vector<short> data0, Vector<short> data1)
Parameters
data0
Vector<short>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<short>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<ushort>, Vector<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 (Vector<ushort> Result0, Vector<ushort> Result1) YGroup2Transpose(Vector<ushort> data0, Vector<ushort> data1)
Parameters
data0
Vector<ushort>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<ushort>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<int>, Vector<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 (Vector<int> Result0, Vector<int> Result1) YGroup2Transpose(Vector<int> data0, Vector<int> data1)
Parameters
data0
Vector<int>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<int>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<uint>, Vector<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 (Vector<uint> Result0, Vector<uint> Result1) YGroup2Transpose(Vector<uint> data0, Vector<uint> data1)
Parameters
data0
Vector<uint>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<uint>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<long>, Vector<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 (Vector<long> Result0, Vector<long> Result1) YGroup2Transpose(Vector<long> data0, Vector<long> data1)
Parameters
data0
Vector<long>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<long>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<ulong>, Vector<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 (Vector<ulong> Result0, Vector<ulong> Result1) YGroup2Transpose(Vector<ulong> data0, Vector<ulong> data1)
Parameters
data0
Vector<ulong>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<ulong>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(Vector<float>, Vector<float>, out Vector<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 Vector<float> YGroup2Transpose(Vector<float> data0, Vector<float> data1, out Vector<float> result1)
Parameters
data0
Vector<float>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<float>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<float>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector<double>, Vector<double>, out Vector<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 Vector<double> YGroup2Transpose(Vector<double> data0, Vector<double> data1, out Vector<double> result1)
Parameters
data0
Vector<double>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<double>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<double>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector<sbyte>, Vector<sbyte>, out Vector<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 Vector<sbyte> YGroup2Transpose(Vector<sbyte> data0, Vector<sbyte> data1, out Vector<sbyte> result1)
Parameters
data0
Vector<sbyte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<sbyte>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<sbyte>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector<byte>, Vector<byte>, out Vector<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 Vector<byte> YGroup2Transpose(Vector<byte> data0, Vector<byte> data1, out Vector<byte> result1)
Parameters
data0
Vector<byte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<byte>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<byte>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector<short>, Vector<short>, out Vector<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 Vector<short> YGroup2Transpose(Vector<short> data0, Vector<short> data1, out Vector<short> result1)
Parameters
data0
Vector<short>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<short>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<short>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector<ushort>, Vector<ushort>, out Vector<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 Vector<ushort> YGroup2Transpose(Vector<ushort> data0, Vector<ushort> data1, out Vector<ushort> result1)
Parameters
data0
Vector<ushort>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<ushort>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<ushort>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector<int>, Vector<int>, out Vector<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 Vector<int> YGroup2Transpose(Vector<int> data0, Vector<int> data1, out Vector<int> result1)
Parameters
data0
Vector<int>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<int>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<int>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector<uint>, Vector<uint>, out Vector<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 Vector<uint> YGroup2Transpose(Vector<uint> data0, Vector<uint> data1, out Vector<uint> result1)
Parameters
data0
Vector<uint>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<uint>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<uint>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector<long>, Vector<long>, out Vector<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 Vector<long> YGroup2Transpose(Vector<long> data0, Vector<long> data1, out Vector<long> result1)
Parameters
data0
Vector<long>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<long>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<long>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also
YGroup2Transpose(Vector<ulong>, Vector<ulong>, out Vector<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 Vector<ulong> YGroup2Transpose(Vector<ulong> data0, Vector<ulong> data1, out Vector<ulong> result1)
Parameters
data0
Vector<ulong>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<ulong>Part 1 of the vector data (向量数据的第1部分).
result1
Vector<ulong>Returns part 1 of the transposed data (返回转置后数据的第1部分).
Returns
- See Also