Table of Contents

Method YGroup2Transpose

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup2Transpose<T>(IWVectorTraits256, Vector256<T>, Vector256<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 (Vector256<T> Result0, Vector256<T> Result1) YGroup2Transpose<T>(this IWVectorTraits256 athis, Vector256<T> data0, Vector256<T> data1) where T : struct

Parameters

athis IWVectorTraits256
data0 Vector256<T>

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

data1 Vector256<T>

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

Returns

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

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

Type Parameters

T

The element type of the input parameter (输入参数的元素类型).

YGroup2Transpose(IWVectorTraits256, Vector256<float>, Vector256<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 (Vector256<float> Result0, Vector256<float> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<float> data0, Vector256<float> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<float>

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

data1 Vector256<float>

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

Returns

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

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

YGroup2Transpose(IWVectorTraits256, Vector256<double>, Vector256<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 (Vector256<double> Result0, Vector256<double> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<double> data0, Vector256<double> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<double>

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

data1 Vector256<double>

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

Returns

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

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

YGroup2Transpose(IWVectorTraits256, Vector256<sbyte>, Vector256<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 (Vector256<sbyte> Result0, Vector256<sbyte> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<sbyte> data0, Vector256<sbyte> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<sbyte>

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

data1 Vector256<sbyte>

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

Returns

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

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

YGroup2Transpose(IWVectorTraits256, Vector256<byte>, Vector256<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 (Vector256<byte> Result0, Vector256<byte> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<byte> data0, Vector256<byte> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<byte>

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

data1 Vector256<byte>

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

Returns

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

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

YGroup2Transpose(IWVectorTraits256, Vector256<short>, Vector256<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 (Vector256<short> Result0, Vector256<short> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<short> data0, Vector256<short> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<short>

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

data1 Vector256<short>

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

Returns

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

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

YGroup2Transpose(IWVectorTraits256, Vector256<ushort>, Vector256<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 (Vector256<ushort> Result0, Vector256<ushort> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<ushort> data0, Vector256<ushort> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<ushort>

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

data1 Vector256<ushort>

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

Returns

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

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

YGroup2Transpose(IWVectorTraits256, Vector256<int>, Vector256<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 (Vector256<int> Result0, Vector256<int> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<int> data0, Vector256<int> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<int>

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

data1 Vector256<int>

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

Returns

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

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

YGroup2Transpose(IWVectorTraits256, Vector256<uint>, Vector256<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 (Vector256<uint> Result0, Vector256<uint> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<uint> data0, Vector256<uint> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<uint>

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

data1 Vector256<uint>

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

Returns

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

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

YGroup2Transpose(IWVectorTraits256, Vector256<long>, Vector256<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 (Vector256<long> Result0, Vector256<long> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<long> data0, Vector256<long> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<long>

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

data1 Vector256<long>

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

Returns

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

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

YGroup2Transpose(IWVectorTraits256, Vector256<ulong>, Vector256<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 (Vector256<ulong> Result0, Vector256<ulong> Result1) YGroup2Transpose(this IWVectorTraits256 athis, Vector256<ulong> data0, Vector256<ulong> data1)

Parameters

athis IWVectorTraits256
data0 Vector256<ulong>

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

data1 Vector256<ulong>

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

Returns

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

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