Table of Contents

Method YGroup2Zip_Bit128

Namespace
Zyl.VectorTraits.Impl.AVector
Assembly
VectorTraits.dll

YGroup2Zip_Bit128<T>(Vector<T>, Vector<T>, out Vector<T>)

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

public override Vector<T> YGroup2Zip_Bit128<T>(Vector<T> x, Vector<T> y, out Vector<T> data1) where T : struct

Parameters

x Vector<T>

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

y Vector<T>

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

data1 Vector<T>

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

Returns

Vector<T>

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

Type Parameters

T

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

See Also