Table of Contents

Method YGroup2Zip

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup2Zip(IWVectorTraits512, Vector512<Int128>, Vector512<Int128>, out Vector512<Int128>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static Vector512<Int128> YGroup2Zip(this IWVectorTraits512 athis, Vector512<Int128> x, Vector512<Int128> y, out Vector512<Int128> data1)

Parameters

athis IWVectorTraits512
x Vector512<Int128>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<Int128>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

data1 Vector512<Int128>

Returns part 1 of the interleaved data (返回交织后数据的第1部分).

Returns

Vector512<Int128>

Returns part 0 of the interleaved data (返回交织后数据的第0部分).

See Also

YGroup2Zip(IWVectorTraits512, Vector512<UInt128>, Vector512<UInt128>, out Vector512<UInt128>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static Vector512<UInt128> YGroup2Zip(this IWVectorTraits512 athis, Vector512<UInt128> x, Vector512<UInt128> y, out Vector512<UInt128> data1)

Parameters

athis IWVectorTraits512
x Vector512<UInt128>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<UInt128>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

data1 Vector512<UInt128>

Returns part 1 of the interleaved data (返回交织后数据的第1部分).

Returns

Vector512<UInt128>

Returns part 0 of the interleaved data (返回交织后数据的第0部分).

See Also

YGroup2Zip<T>(IWVectorTraits512, Vector512<T>, Vector512<T>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[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 (Vector512<T> Data0, Vector512<T> Data1) YGroup2Zip<T>(this IWVectorTraits512 athis, Vector512<T> x, Vector512<T> y) where T : struct

Parameters

athis IWVectorTraits512
x Vector512<T>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<T>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

Type Parameters

T

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

YGroup2Zip(IWVectorTraits512, Vector512<float>, Vector512<float>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<float> Data0, Vector512<float> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<float> x, Vector512<float> y)

Parameters

athis IWVectorTraits512
x Vector512<float>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<float>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<double>, Vector512<double>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<double> Data0, Vector512<double> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<double> x, Vector512<double> y)

Parameters

athis IWVectorTraits512
x Vector512<double>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<double>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<sbyte>, Vector512<sbyte>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<sbyte> Data0, Vector512<sbyte> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<sbyte> x, Vector512<sbyte> y)

Parameters

athis IWVectorTraits512
x Vector512<sbyte>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<sbyte>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<byte>, Vector512<byte>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<byte> Data0, Vector512<byte> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<byte> x, Vector512<byte> y)

Parameters

athis IWVectorTraits512
x Vector512<byte>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<byte>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<short>, Vector512<short>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<short> Data0, Vector512<short> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<short> x, Vector512<short> y)

Parameters

athis IWVectorTraits512
x Vector512<short>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<short>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<ushort>, Vector512<ushort>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<ushort> Data0, Vector512<ushort> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<ushort> x, Vector512<ushort> y)

Parameters

athis IWVectorTraits512
x Vector512<ushort>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<ushort>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<int>, Vector512<int>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<int> Data0, Vector512<int> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<int> x, Vector512<int> y)

Parameters

athis IWVectorTraits512
x Vector512<int>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<int>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<uint>, Vector512<uint>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<uint> Data0, Vector512<uint> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<uint> x, Vector512<uint> y)

Parameters

athis IWVectorTraits512
x Vector512<uint>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<uint>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<long>, Vector512<long>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<long> Data0, Vector512<long> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<long> x, Vector512<long> y)

Parameters

athis IWVectorTraits512
x Vector512<long>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<long>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<ulong>, Vector512<ulong>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<ulong> Data0, Vector512<ulong> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<ulong> x, Vector512<ulong> y)

Parameters

athis IWVectorTraits512
x Vector512<ulong>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<ulong>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

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

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<ExInt128>, Vector512<ExInt128>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<ExInt128> Data0, Vector512<ExInt128> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<ExInt128> x, Vector512<ExInt128> y)

Parameters

athis IWVectorTraits512
x Vector512<ExInt128>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<ExInt128>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

(Vector512<ExInt128> X, Vector512<ExInt128> Y)

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<ExUInt128>, Vector512<ExUInt128>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<ExUInt128> Data0, Vector512<ExUInt128> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<ExUInt128> x, Vector512<ExUInt128> y)

Parameters

athis IWVectorTraits512
x Vector512<ExUInt128>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<ExUInt128>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

(Vector512<ExUInt128> X, Vector512<ExUInt128> Y)

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<Int128>, Vector512<Int128>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<Int128> Data0, Vector512<Int128> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<Int128> x, Vector512<Int128> y)

Parameters

athis IWVectorTraits512
x Vector512<Int128>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<Int128>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

(Vector512<Int128> X, Vector512<Int128> Y)

Returns the interleaved data (返回交织后数据).

YGroup2Zip(IWVectorTraits512, Vector512<UInt128>, Vector512<UInt128>)

Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := i/2.

[CLSCompliant(false)]
public static (Vector512<UInt128> Data0, Vector512<UInt128> Data1) YGroup2Zip(this IWVectorTraits512 athis, Vector512<UInt128> x, Vector512<UInt128> y)

Parameters

athis IWVectorTraits512
x Vector512<UInt128>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector512<UInt128>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

Returns

(Vector512<UInt128> X, Vector512<UInt128> Y)

Returns the interleaved data (返回交织后数据).