Method YGroup2Zip
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YGroup2Zip(IWVectorTraits256, Vector256<Int128>, Vector256<Int128>, out Vector256<Int128>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static Vector256<Int128> YGroup2Zip(this IWVectorTraits256 athis, Vector256<Int128> x, Vector256<Int128> y, out Vector256<Int128> data1)
Parameters
athis
IWVectorTraits256x
Vector256<Int128>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<Int128>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
data1
Vector256<Int128>Returns part 1 of the interleaved data (返回交织后数据的第1部分).
Returns
- See Also
YGroup2Zip(IWVectorTraits256, Vector256<UInt128>, Vector256<UInt128>, out Vector256<UInt128>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static Vector256<UInt128> YGroup2Zip(this IWVectorTraits256 athis, Vector256<UInt128> x, Vector256<UInt128> y, out Vector256<UInt128> data1)
Parameters
athis
IWVectorTraits256x
Vector256<UInt128>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<UInt128>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
data1
Vector256<UInt128>Returns part 1 of the interleaved data (返回交织后数据的第1部分).
Returns
- See Also
YGroup2Zip<T>(IWVectorTraits256, Vector256<T>, Vector256<T>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (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 (Vector256<T> Data0, Vector256<T> Data1) YGroup2Zip<T>(this IWVectorTraits256 athis, Vector256<T> x, Vector256<T> y) where T : struct
Parameters
athis
IWVectorTraits256x
Vector256<T>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<T>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
YGroup2Zip(IWVectorTraits256, Vector256<float>, Vector256<float>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<float> Data0, Vector256<float> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<float> x, Vector256<float> y)
Parameters
athis
IWVectorTraits256x
Vector256<float>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<float>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<double>, Vector256<double>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<double> Data0, Vector256<double> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<double> x, Vector256<double> y)
Parameters
athis
IWVectorTraits256x
Vector256<double>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<double>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<sbyte>, Vector256<sbyte>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<sbyte> Data0, Vector256<sbyte> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<sbyte> x, Vector256<sbyte> y)
Parameters
athis
IWVectorTraits256x
Vector256<sbyte>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<sbyte>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<byte>, Vector256<byte>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<byte> Data0, Vector256<byte> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<byte> x, Vector256<byte> y)
Parameters
athis
IWVectorTraits256x
Vector256<byte>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<byte>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<short>, Vector256<short>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<short> Data0, Vector256<short> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<short> x, Vector256<short> y)
Parameters
athis
IWVectorTraits256x
Vector256<short>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<short>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<ushort>, Vector256<ushort>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<ushort> Data0, Vector256<ushort> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<ushort> x, Vector256<ushort> y)
Parameters
athis
IWVectorTraits256x
Vector256<ushort>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<ushort>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<int>, Vector256<int>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<int> Data0, Vector256<int> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<int> x, Vector256<int> y)
Parameters
athis
IWVectorTraits256x
Vector256<int>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<int>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<uint>, Vector256<uint>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<uint> Data0, Vector256<uint> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<uint> x, Vector256<uint> y)
Parameters
athis
IWVectorTraits256x
Vector256<uint>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<uint>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<long>, Vector256<long>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<long> Data0, Vector256<long> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<long> x, Vector256<long> y)
Parameters
athis
IWVectorTraits256x
Vector256<long>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<long>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<ulong>, Vector256<ulong>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<ulong> Data0, Vector256<ulong> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<ulong> x, Vector256<ulong> y)
Parameters
athis
IWVectorTraits256x
Vector256<ulong>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<ulong>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<ExInt128>, Vector256<ExInt128>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<ExInt128> Data0, Vector256<ExInt128> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<ExInt128> x, Vector256<ExInt128> y)
Parameters
athis
IWVectorTraits256x
Vector256<ExInt128>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<ExInt128>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<ExUInt128>, Vector256<ExUInt128>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<ExUInt128> Data0, Vector256<ExUInt128> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<ExUInt128> x, Vector256<ExUInt128> y)
Parameters
athis
IWVectorTraits256x
Vector256<ExUInt128>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<ExUInt128>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<Int128>, Vector256<Int128>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<Int128> Data0, Vector256<Int128> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<Int128> x, Vector256<Int128> y)
Parameters
athis
IWVectorTraits256x
Vector256<Int128>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<Int128>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
Returns
YGroup2Zip(IWVectorTraits256, Vector256<UInt128>, Vector256<UInt128>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
[CLSCompliant(false)]
public static (Vector256<UInt128> Data0, Vector256<UInt128> Data1) YGroup2Zip(this IWVectorTraits256 athis, Vector256<UInt128> x, Vector256<UInt128> y)
Parameters
athis
IWVectorTraits256x
Vector256<UInt128>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector256<UInt128>A vector consisting purely of Y-components (纯由Y分量所组成的向量).