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