Method YGroup2Zip_Bit128
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YGroup2Zip_Bit128<T>(Vector256<T>, Vector256<T>, out Vector256<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
.
Vector256<T> YGroup2Zip_Bit128<T>(Vector256<T> x, Vector256<T> y, out Vector256<T> data1) where T : struct
Parameters
x
Vector256<T>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<T>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
data1
Vector256<T>Returns part 1 of the interleaved data (返回交织后数据的第1部分).
Returns
- Vector256<T>
Returns part 0 of the interleaved data (返回交织后数据的第0部分).
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
- See Also