Method YGroup4Zip
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YGroup4Zip(IWVectorTraits512, Vector512<Int128>, Vector512<Int128>, Vector512<Int128>, Vector512<Int128>, out Vector512<Int128>, out Vector512<Int128>, out Vector512<Int128>)
Interleave 4 vectors into 4-element groups. It converts the 4-element groups SoA to AoS. It can also interleave R,G,B,A planar data into packed RGBA pixel data (将4个向量交织为4-元素组. 它能将4元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B,A 平面数据, 交织为 已打包的RGBA像素数据).
Mnemonic: element_ref(i, data0, data1, data2, data3) := (0==(i&3))?( x[i2] ):( (1==(i&3))?( y[i2] ):( (2==(i&s3))?( z[i2] ):( w[i2] ) ) )
, i2 := i/4
.
[CLSCompliant(false)]
public static Vector512<Int128> YGroup4Zip(this IWVectorTraits512 athis, Vector512<Int128> x, Vector512<Int128> y, Vector512<Int128> z, Vector512<Int128> w, out Vector512<Int128> data1, out Vector512<Int128> data2, out Vector512<Int128> data3)
Parameters
athis
IWVectorTraits512x
Vector512<Int128>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector512<Int128>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
z
Vector512<Int128>A vector consisting purely of Z-components (纯由Z分量所组成的向量).
w
Vector512<Int128>A vector consisting purely of W-components (纯由W分量所组成的向量).
data1
Vector512<Int128>Returns part 1 of the interleaved data (返回交织后数据的第1部分).
data2
Vector512<Int128>Returns part 2 of the interleaved data (返回交织后数据的第2部分).
data3
Vector512<Int128>Returns part 3 of the interleaved data (返回交织后数据的第3部分).
Returns
YGroup4Zip(IWVectorTraits512, Vector512<UInt128>, Vector512<UInt128>, Vector512<UInt128>, Vector512<UInt128>, out Vector512<UInt128>, out Vector512<UInt128>, out Vector512<UInt128>)
Interleave 4 vectors into 4-element groups. It converts the 4-element groups SoA to AoS. It can also interleave R,G,B,A planar data into packed RGBA pixel data (将4个向量交织为4-元素组. 它能将4元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B,A 平面数据, 交织为 已打包的RGBA像素数据).
Mnemonic: element_ref(i, data0, data1, data2, data3) := (0==(i&3))?( x[i2] ):( (1==(i&3))?( y[i2] ):( (2==(i&s3))?( z[i2] ):( w[i2] ) ) )
, i2 := i/4
.
[CLSCompliant(false)]
public static Vector512<UInt128> YGroup4Zip(this IWVectorTraits512 athis, Vector512<UInt128> x, Vector512<UInt128> y, Vector512<UInt128> z, Vector512<UInt128> w, out Vector512<UInt128> data1, out Vector512<UInt128> data2, out Vector512<UInt128> data3)
Parameters
athis
IWVectorTraits512x
Vector512<UInt128>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector512<UInt128>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
z
Vector512<UInt128>A vector consisting purely of Z-components (纯由Z分量所组成的向量).
w
Vector512<UInt128>A vector consisting purely of W-components (纯由W分量所组成的向量).
data1
Vector512<UInt128>Returns part 1 of the interleaved data (返回交织后数据的第1部分).
data2
Vector512<UInt128>Returns part 2 of the interleaved data (返回交织后数据的第2部分).
data3
Vector512<UInt128>Returns part 3 of the interleaved data (返回交织后数据的第3部分).
Returns
YGroup4Zip<T>(IWVectorTraits512, Vector512<T>, Vector512<T>, Vector512<T>, Vector512<T>)
[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 (Vector512<T> Data0, Vector512<T> Data1, Vector512<T> Data2, Vector512<T> Data3) YGroup4Zip<T>(this IWVectorTraits512 athis, Vector512<T> x, Vector512<T> y, Vector512<T> z, Vector512<T> w) where T : struct
Parameters
athis
IWVectorTraits512x
Vector512<T>y
Vector512<T>z
Vector512<T>w
Vector512<T>
Returns
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
YGroup4Zip(IWVectorTraits512, Vector512<float>, Vector512<float>, Vector512<float>, Vector512<float>)
Interleave 4 vectors into 4-element groups. It converts the 4-element groups SoA to AoS. It can also interleave R,G,B,A planar data into packed RGBA pixel data (将4个向量交织为4-元素组. 它能将4元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B,A 平面数据, 交织为 已打包的RGBA像素数据).
Mnemonic: element_ref(i, data0, data1, data2, data3) := (0==(i&3))?( x[i2] ):( (1==(i&3))?( y[i2] ):( (2==(i&s3))?( z[i2] ):( w[i2] ) ) )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector512<float> Data0, Vector512<float> Data1, Vector512<float> Data2, Vector512<float> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<float> x, Vector512<float> y, Vector512<float> z, Vector512<float> w)
Parameters
athis
IWVectorTraits512x
Vector512<float>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector512<float>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
z
Vector512<float>A vector consisting purely of Z-components (纯由Z分量所组成的向量).
w
Vector512<float>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector512<float> Result0, Vector512<float> Result1, Vector512<float> Result2, Vector512<float> Result3)
Returns the interleaved data (返回交织后数据).
YGroup4Zip(IWVectorTraits512, Vector512<double>, Vector512<double>, Vector512<double>, Vector512<double>)
[CLSCompliant(false)]
public static (Vector512<double> Data0, Vector512<double> Data1, Vector512<double> Data2, Vector512<double> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<double> x, Vector512<double> y, Vector512<double> z, Vector512<double> w)
Parameters
athis
IWVectorTraits512x
Vector512<double>y
Vector512<double>z
Vector512<double>w
Vector512<double>
Returns
- (Vector512<double> Result0, Vector512<double> Result1, Vector512<double> Result2, Vector512<double> Result3)
YGroup4Zip(IWVectorTraits512, Vector512<sbyte>, Vector512<sbyte>, Vector512<sbyte>, Vector512<sbyte>)
[CLSCompliant(false)]
public static (Vector512<sbyte> Data0, Vector512<sbyte> Data1, Vector512<sbyte> Data2, Vector512<sbyte> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<sbyte> x, Vector512<sbyte> y, Vector512<sbyte> z, Vector512<sbyte> w)
Parameters
Returns
YGroup4Zip(IWVectorTraits512, Vector512<byte>, Vector512<byte>, Vector512<byte>, Vector512<byte>)
[CLSCompliant(false)]
public static (Vector512<byte> Data0, Vector512<byte> Data1, Vector512<byte> Data2, Vector512<byte> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<byte> x, Vector512<byte> y, Vector512<byte> z, Vector512<byte> w)
Parameters
Returns
YGroup4Zip(IWVectorTraits512, Vector512<short>, Vector512<short>, Vector512<short>, Vector512<short>)
[CLSCompliant(false)]
public static (Vector512<short> Data0, Vector512<short> Data1, Vector512<short> Data2, Vector512<short> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<short> x, Vector512<short> y, Vector512<short> z, Vector512<short> w)
Parameters
Returns
YGroup4Zip(IWVectorTraits512, Vector512<ushort>, Vector512<ushort>, Vector512<ushort>, Vector512<ushort>)
[CLSCompliant(false)]
public static (Vector512<ushort> Data0, Vector512<ushort> Data1, Vector512<ushort> Data2, Vector512<ushort> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<ushort> x, Vector512<ushort> y, Vector512<ushort> z, Vector512<ushort> w)
Parameters
athis
IWVectorTraits512x
Vector512<ushort>y
Vector512<ushort>z
Vector512<ushort>w
Vector512<ushort>
Returns
- (Vector512<ushort> args0, Vector512<ushort> args1, Vector512<ushort> args2, Vector512<ushort> args3)
YGroup4Zip(IWVectorTraits512, Vector512<int>, Vector512<int>, Vector512<int>, Vector512<int>)
[CLSCompliant(false)]
public static (Vector512<int> Data0, Vector512<int> Data1, Vector512<int> Data2, Vector512<int> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<int> x, Vector512<int> y, Vector512<int> z, Vector512<int> w)
Parameters
Returns
YGroup4Zip(IWVectorTraits512, Vector512<uint>, Vector512<uint>, Vector512<uint>, Vector512<uint>)
[CLSCompliant(false)]
public static (Vector512<uint> Data0, Vector512<uint> Data1, Vector512<uint> Data2, Vector512<uint> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<uint> x, Vector512<uint> y, Vector512<uint> z, Vector512<uint> w)
Parameters
Returns
YGroup4Zip(IWVectorTraits512, Vector512<long>, Vector512<long>, Vector512<long>, Vector512<long>)
[CLSCompliant(false)]
public static (Vector512<long> Data0, Vector512<long> Data1, Vector512<long> Data2, Vector512<long> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<long> x, Vector512<long> y, Vector512<long> z, Vector512<long> w)
Parameters
Returns
YGroup4Zip(IWVectorTraits512, Vector512<ulong>, Vector512<ulong>, Vector512<ulong>, Vector512<ulong>)
[CLSCompliant(false)]
public static (Vector512<ulong> Data0, Vector512<ulong> Data1, Vector512<ulong> Data2, Vector512<ulong> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<ulong> x, Vector512<ulong> y, Vector512<ulong> z, Vector512<ulong> w)
Parameters
Returns
YGroup4Zip(IWVectorTraits512, Vector512<ExInt128>, Vector512<ExInt128>, Vector512<ExInt128>, Vector512<ExInt128>)
[CLSCompliant(false)]
public static (Vector512<ExInt128> Data0, Vector512<ExInt128> Data1, Vector512<ExInt128> Data2, Vector512<ExInt128> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<ExInt128> x, Vector512<ExInt128> y, Vector512<ExInt128> z, Vector512<ExInt128> w)
Parameters
athis
IWVectorTraits512x
Vector512<ExInt128>y
Vector512<ExInt128>z
Vector512<ExInt128>w
Vector512<ExInt128>
Returns
YGroup4Zip(IWVectorTraits512, Vector512<ExUInt128>, Vector512<ExUInt128>, Vector512<ExUInt128>, Vector512<ExUInt128>)
[CLSCompliant(false)]
public static (Vector512<ExUInt128> Data0, Vector512<ExUInt128> Data1, Vector512<ExUInt128> Data2, Vector512<ExUInt128> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<ExUInt128> x, Vector512<ExUInt128> y, Vector512<ExUInt128> z, Vector512<ExUInt128> w)
Parameters
athis
IWVectorTraits512x
Vector512<ExUInt128>y
Vector512<ExUInt128>z
Vector512<ExUInt128>w
Vector512<ExUInt128>
Returns
YGroup4Zip(IWVectorTraits512, Vector512<Int128>, Vector512<Int128>, Vector512<Int128>, Vector512<Int128>)
[CLSCompliant(false)]
public static (Vector512<Int128> Data0, Vector512<Int128> Data1, Vector512<Int128> Data2, Vector512<Int128> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<Int128> x, Vector512<Int128> y, Vector512<Int128> z, Vector512<Int128> w)
Parameters
athis
IWVectorTraits512x
Vector512<Int128>y
Vector512<Int128>z
Vector512<Int128>w
Vector512<Int128>
Returns
YGroup4Zip(IWVectorTraits512, Vector512<UInt128>, Vector512<UInt128>, Vector512<UInt128>, Vector512<UInt128>)
[CLSCompliant(false)]
public static (Vector512<UInt128> Data0, Vector512<UInt128> Data1, Vector512<UInt128> Data2, Vector512<UInt128> Data3) YGroup4Zip(this IWVectorTraits512 athis, Vector512<UInt128> x, Vector512<UInt128> y, Vector512<UInt128> z, Vector512<UInt128> w)
Parameters
athis
IWVectorTraits512x
Vector512<UInt128>y
Vector512<UInt128>z
Vector512<UInt128>w
Vector512<UInt128>