Table of Contents

Method YGroup2Zip

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup2Zip(IWVectorTraits128, Vector128<Int128>, Vector128<Int128>, out Vector128<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 Vector128<Int128> YGroup2Zip(this IWVectorTraits128 athis, Vector128<Int128> x, Vector128<Int128> y, out Vector128<Int128> data1)

Parameters

athis IWVectorTraits128
x Vector128<Int128>

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

y Vector128<Int128>

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

data1 Vector128<Int128>

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

Returns

Vector128<Int128>

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

See Also

YGroup2Zip(IWVectorTraits128, Vector128<UInt128>, Vector128<UInt128>, out Vector128<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 Vector128<UInt128> YGroup2Zip(this IWVectorTraits128 athis, Vector128<UInt128> x, Vector128<UInt128> y, out Vector128<UInt128> data1)

Parameters

athis IWVectorTraits128
x Vector128<UInt128>

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

y Vector128<UInt128>

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

data1 Vector128<UInt128>

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

Returns

Vector128<UInt128>

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

See Also

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

Parameters

athis IWVectorTraits128
x Vector128<T>

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

y Vector128<T>

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

Returns

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

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

Type Parameters

T

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

YGroup2Zip(IWVectorTraits128, Vector128<float>, Vector128<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 (Vector128<float> Data0, Vector128<float> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<float> x, Vector128<float> y)

Parameters

athis IWVectorTraits128
x Vector128<float>

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

y Vector128<float>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<double>, Vector128<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 (Vector128<double> Data0, Vector128<double> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<double> x, Vector128<double> y)

Parameters

athis IWVectorTraits128
x Vector128<double>

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

y Vector128<double>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<sbyte>, Vector128<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 (Vector128<sbyte> Data0, Vector128<sbyte> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<sbyte> x, Vector128<sbyte> y)

Parameters

athis IWVectorTraits128
x Vector128<sbyte>

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

y Vector128<sbyte>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<byte>, Vector128<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 (Vector128<byte> Data0, Vector128<byte> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<byte> x, Vector128<byte> y)

Parameters

athis IWVectorTraits128
x Vector128<byte>

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

y Vector128<byte>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<short>, Vector128<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 (Vector128<short> Data0, Vector128<short> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<short> x, Vector128<short> y)

Parameters

athis IWVectorTraits128
x Vector128<short>

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

y Vector128<short>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<ushort>, Vector128<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 (Vector128<ushort> Data0, Vector128<ushort> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<ushort> x, Vector128<ushort> y)

Parameters

athis IWVectorTraits128
x Vector128<ushort>

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

y Vector128<ushort>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<int>, Vector128<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 (Vector128<int> Data0, Vector128<int> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<int> x, Vector128<int> y)

Parameters

athis IWVectorTraits128
x Vector128<int>

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

y Vector128<int>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<uint>, Vector128<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 (Vector128<uint> Data0, Vector128<uint> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<uint> x, Vector128<uint> y)

Parameters

athis IWVectorTraits128
x Vector128<uint>

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

y Vector128<uint>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<long>, Vector128<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 (Vector128<long> Data0, Vector128<long> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<long> x, Vector128<long> y)

Parameters

athis IWVectorTraits128
x Vector128<long>

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

y Vector128<long>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<ulong>, Vector128<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 (Vector128<ulong> Data0, Vector128<ulong> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<ulong> x, Vector128<ulong> y)

Parameters

athis IWVectorTraits128
x Vector128<ulong>

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

y Vector128<ulong>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<ExInt128>, Vector128<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 (Vector128<ExInt128> Data0, Vector128<ExInt128> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<ExInt128> x, Vector128<ExInt128> y)

Parameters

athis IWVectorTraits128
x Vector128<ExInt128>

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

y Vector128<ExInt128>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<ExUInt128>, Vector128<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 (Vector128<ExUInt128> Data0, Vector128<ExUInt128> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<ExUInt128> x, Vector128<ExUInt128> y)

Parameters

athis IWVectorTraits128
x Vector128<ExUInt128>

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

y Vector128<ExUInt128>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<Int128>, Vector128<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 (Vector128<Int128> Data0, Vector128<Int128> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<Int128> x, Vector128<Int128> y)

Parameters

athis IWVectorTraits128
x Vector128<Int128>

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

y Vector128<Int128>

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

Returns

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

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

YGroup2Zip(IWVectorTraits128, Vector128<UInt128>, Vector128<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 (Vector128<UInt128> Data0, Vector128<UInt128> Data1) YGroup2Zip(this IWVectorTraits128 athis, Vector128<UInt128> x, Vector128<UInt128> y)

Parameters

athis IWVectorTraits128
x Vector128<UInt128>

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

y Vector128<UInt128>

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

Returns

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

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