Method YGroup2Transpose
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YGroup2Transpose<T>(IVectorTraits, 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] )
.
[CLSCompliant(false)]
[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>(this IVectorTraits athis, Vector<T> data0, Vector<T> data1) where T : struct
Parameters
athis
IVectorTraitsdata0
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(IVectorTraits, 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] )
.
[CLSCompliant(false)]
public static (Vector<float> Result0, Vector<float> Result1) YGroup2Transpose(this IVectorTraits athis, Vector<float> data0, Vector<float> data1)
Parameters
athis
IVectorTraitsdata0
Vector<float>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<float>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(IVectorTraits, 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] )
.
[CLSCompliant(false)]
public static (Vector<double> Result0, Vector<double> Result1) YGroup2Transpose(this IVectorTraits athis, Vector<double> data0, Vector<double> data1)
Parameters
athis
IVectorTraitsdata0
Vector<double>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<double>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(IVectorTraits, 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(this IVectorTraits athis, Vector<sbyte> data0, Vector<sbyte> data1)
Parameters
athis
IVectorTraitsdata0
Vector<sbyte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<sbyte>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(IVectorTraits, 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] )
.
[CLSCompliant(false)]
public static (Vector<byte> Result0, Vector<byte> Result1) YGroup2Transpose(this IVectorTraits athis, Vector<byte> data0, Vector<byte> data1)
Parameters
athis
IVectorTraitsdata0
Vector<byte>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<byte>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(IVectorTraits, 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] )
.
[CLSCompliant(false)]
public static (Vector<short> Result0, Vector<short> Result1) YGroup2Transpose(this IVectorTraits athis, Vector<short> data0, Vector<short> data1)
Parameters
athis
IVectorTraitsdata0
Vector<short>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<short>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(IVectorTraits, 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(this IVectorTraits athis, Vector<ushort> data0, Vector<ushort> data1)
Parameters
athis
IVectorTraitsdata0
Vector<ushort>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<ushort>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(IVectorTraits, 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] )
.
[CLSCompliant(false)]
public static (Vector<int> Result0, Vector<int> Result1) YGroup2Transpose(this IVectorTraits athis, Vector<int> data0, Vector<int> data1)
Parameters
athis
IVectorTraitsdata0
Vector<int>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<int>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(IVectorTraits, 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(this IVectorTraits athis, Vector<uint> data0, Vector<uint> data1)
Parameters
athis
IVectorTraitsdata0
Vector<uint>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<uint>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(IVectorTraits, 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] )
.
[CLSCompliant(false)]
public static (Vector<long> Result0, Vector<long> Result1) YGroup2Transpose(this IVectorTraits athis, Vector<long> data0, Vector<long> data1)
Parameters
athis
IVectorTraitsdata0
Vector<long>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<long>Part 1 of the vector data (向量数据的第1部分).
Returns
YGroup2Transpose(IVectorTraits, 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(this IVectorTraits athis, Vector<ulong> data0, Vector<ulong> data1)
Parameters
athis
IVectorTraitsdata0
Vector<ulong>Part 0 of the vector data (向量数据的第0部分).
data1
Vector<ulong>Part 1 of the vector data (向量数据的第1部分).