Table of Contents

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 IVectorTraits
data0 Vector<T>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<T>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<T> args0, Vector<T> args1)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<float>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<float>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<float> Result0, Vector<float> Result1)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<double>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<double>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<double> Lower, Vector<double> Upper)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<sbyte>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<sbyte>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<sbyte> args0, Vector<sbyte> args1)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<byte>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<byte>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<byte> args0, Vector<byte> args1)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<short>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<short>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<short> Lower, Vector<short> Upper)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<ushort>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<ushort>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<ushort> Lower, Vector<ushort> Upper)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<int>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<int>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<int> Lower, Vector<int> Upper)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<uint>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<uint>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<uint> Lower, Vector<uint> Upper)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<long>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<long>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<long> Lower, Vector<long> Upper)

Returns the transposed data (返回转置后数据).

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 IVectorTraits
data0 Vector<ulong>

Part 0 of the vector data (向量数据的第0部分).

data1 Vector<ulong>

Part 1 of the vector data (向量数据的第1部分).

Returns

(Vector<ulong> Lower, Vector<ulong> Upper)

Returns the transposed data (返回转置后数据).