Table of Contents

Method YGroup2ZipLow

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup2ZipLow<T>(IWVectorTraits128, Vector128<T>, Vector128<T>)

Interleave 2 vectors into 2-element groups and returns the data in the low position. (将2个向量交织为2-元素组, 并返回低位置的数据). Mnemonic: rt[i] := (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> YGroup2ZipLow<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>

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

Type Parameters

T
See Also

YGroup2ZipLow(IWVectorTraits128, Vector128<Int128>, Vector128<Int128>)

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

[CLSCompliant(false)]
public static Vector128<Int128> YGroup2ZipLow(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>

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

See Also

YGroup2ZipLow(IWVectorTraits128, Vector128<UInt128>, Vector128<UInt128>)

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

[CLSCompliant(false)]
public static Vector128<UInt128> YGroup2ZipLow(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>

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

See Also