Table of Contents

Method YGroup2ZipHigh

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup2ZipHigh<T>(IVectorTraits, Vector<T>, Vector<T>)

Interleave 2 vectors into 2-element groups and returns the data in the high position. (将2个向量交织为2-元素组, 并返回高位置的数据). Mnemonic: rt[i] := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := (i+T.Count)/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 Vector<T> YGroup2ZipHigh<T>(this IVectorTraits athis, Vector<T> x, Vector<T> y) where T : struct

Parameters

athis IVectorTraits
x Vector<T>

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

y Vector<T>

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

Returns

Vector<T>

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

Type Parameters

T
See Also

YGroup2ZipHigh(IVectorTraits, Vector<Int128>, Vector<Int128>)

Interleave 2 vectors into 2-element groups and returns the data in the high position. (将2个向量交织为2-元素组, 并返回高位置的数据). Mnemonic: rt[i] := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := (i+T.Count)/2.

[CLSCompliant(false)]
public static Vector<Int128> YGroup2ZipHigh(this IVectorTraits athis, Vector<Int128> x, Vector<Int128> y)

Parameters

athis IVectorTraits
x Vector<Int128>

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

y Vector<Int128>

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

Returns

Vector<Int128>

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

See Also

YGroup2ZipHigh(IVectorTraits, Vector<UInt128>, Vector<UInt128>)

Interleave 2 vectors into 2-element groups and returns the data in the high position. (将2个向量交织为2-元素组, 并返回高位置的数据). Mnemonic: rt[i] := (0==(i&1))?( x[i2] ):( y[i2] ), i2 := (i+T.Count)/2.

[CLSCompliant(false)]
public static Vector<UInt128> YGroup2ZipHigh(this IVectorTraits athis, Vector<UInt128> x, Vector<UInt128> y)

Parameters

athis IVectorTraits
x Vector<UInt128>

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

y Vector<UInt128>

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

Returns

Vector<UInt128>

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

See Also