Table of Contents

Method YGroup4Zip

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup4Zip(IWVectorTraits256, Vector256<Int128>, Vector256<Int128>, Vector256<Int128>, Vector256<Int128>, out Vector256<Int128>, out Vector256<Int128>, out Vector256<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 Vector256<Int128> YGroup4Zip(this IWVectorTraits256 athis, Vector256<Int128> x, Vector256<Int128> y, Vector256<Int128> z, Vector256<Int128> w, out Vector256<Int128> data1, out Vector256<Int128> data2, out Vector256<Int128> data3)

Parameters

athis IWVectorTraits256
x Vector256<Int128>

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

y Vector256<Int128>

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

z Vector256<Int128>

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

w Vector256<Int128>

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

data1 Vector256<Int128>

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

data2 Vector256<Int128>

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

data3 Vector256<Int128>

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

Returns

Vector256<Int128>

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

YGroup4Zip(IWVectorTraits256, Vector256<UInt128>, Vector256<UInt128>, Vector256<UInt128>, Vector256<UInt128>, out Vector256<UInt128>, out Vector256<UInt128>, out Vector256<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 Vector256<UInt128> YGroup4Zip(this IWVectorTraits256 athis, Vector256<UInt128> x, Vector256<UInt128> y, Vector256<UInt128> z, Vector256<UInt128> w, out Vector256<UInt128> data1, out Vector256<UInt128> data2, out Vector256<UInt128> data3)

Parameters

athis IWVectorTraits256
x Vector256<UInt128>

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

y Vector256<UInt128>

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

z Vector256<UInt128>

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

w Vector256<UInt128>

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

data1 Vector256<UInt128>

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

data2 Vector256<UInt128>

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

data3 Vector256<UInt128>

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

Returns

Vector256<UInt128>

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

YGroup4Zip<T>(IWVectorTraits256, Vector256<T>, Vector256<T>, Vector256<T>, Vector256<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 (Vector256<T> Data0, Vector256<T> Data1, Vector256<T> Data2, Vector256<T> Data3) YGroup4Zip<T>(this IWVectorTraits256 athis, Vector256<T> x, Vector256<T> y, Vector256<T> z, Vector256<T> w) where T : struct

Parameters

athis IWVectorTraits256
x Vector256<T>
y Vector256<T>
z Vector256<T>
w Vector256<T>

Returns

(Vector256<T> Result0, Vector256<T> Result1, Vector256<T> Result2, Vector256<T> Result3)

Type Parameters

T

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

YGroup4Zip(IWVectorTraits256, Vector256<float>, Vector256<float>, Vector256<float>, Vector256<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 (Vector256<float> Data0, Vector256<float> Data1, Vector256<float> Data2, Vector256<float> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<float> x, Vector256<float> y, Vector256<float> z, Vector256<float> w)

Parameters

athis IWVectorTraits256
x Vector256<float>

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

y Vector256<float>

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

z Vector256<float>

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

w Vector256<float>

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

Returns

(Vector256<float> Result0, Vector256<float> Result1, Vector256<float> Result2, Vector256<float> Result3)

Returns the interleaved data (返回交织后数据).

YGroup4Zip(IWVectorTraits256, Vector256<double>, Vector256<double>, Vector256<double>, Vector256<double>)

[CLSCompliant(false)]
public static (Vector256<double> Data0, Vector256<double> Data1, Vector256<double> Data2, Vector256<double> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<double> x, Vector256<double> y, Vector256<double> z, Vector256<double> w)

Parameters

athis IWVectorTraits256
x Vector256<double>
y Vector256<double>
z Vector256<double>
w Vector256<double>

Returns

(Vector256<double> Result0, Vector256<double> Result1, Vector256<double> Result2, Vector256<double> Result3)

YGroup4Zip(IWVectorTraits256, Vector256<sbyte>, Vector256<sbyte>, Vector256<sbyte>, Vector256<sbyte>)

[CLSCompliant(false)]
public static (Vector256<sbyte> Data0, Vector256<sbyte> Data1, Vector256<sbyte> Data2, Vector256<sbyte> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<sbyte> x, Vector256<sbyte> y, Vector256<sbyte> z, Vector256<sbyte> w)

Parameters

athis IWVectorTraits256
x Vector256<sbyte>
y Vector256<sbyte>
z Vector256<sbyte>
w Vector256<sbyte>

Returns

(Vector256<sbyte> args0, Vector256<sbyte> args1, Vector256<sbyte> args2, Vector256<sbyte> args3)

YGroup4Zip(IWVectorTraits256, Vector256<byte>, Vector256<byte>, Vector256<byte>, Vector256<byte>)

[CLSCompliant(false)]
public static (Vector256<byte> Data0, Vector256<byte> Data1, Vector256<byte> Data2, Vector256<byte> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<byte> x, Vector256<byte> y, Vector256<byte> z, Vector256<byte> w)

Parameters

athis IWVectorTraits256
x Vector256<byte>
y Vector256<byte>
z Vector256<byte>
w Vector256<byte>

Returns

(Vector256<byte> args0, Vector256<byte> args1, Vector256<byte> args2, Vector256<byte> args3)

YGroup4Zip(IWVectorTraits256, Vector256<short>, Vector256<short>, Vector256<short>, Vector256<short>)

[CLSCompliant(false)]
public static (Vector256<short> Data0, Vector256<short> Data1, Vector256<short> Data2, Vector256<short> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<short> x, Vector256<short> y, Vector256<short> z, Vector256<short> w)

Parameters

athis IWVectorTraits256
x Vector256<short>
y Vector256<short>
z Vector256<short>
w Vector256<short>

Returns

(Vector256<short> args0, Vector256<short> args1, Vector256<short> args2, Vector256<short> args3)

YGroup4Zip(IWVectorTraits256, Vector256<ushort>, Vector256<ushort>, Vector256<ushort>, Vector256<ushort>)

[CLSCompliant(false)]
public static (Vector256<ushort> Data0, Vector256<ushort> Data1, Vector256<ushort> Data2, Vector256<ushort> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<ushort> x, Vector256<ushort> y, Vector256<ushort> z, Vector256<ushort> w)

Parameters

athis IWVectorTraits256
x Vector256<ushort>
y Vector256<ushort>
z Vector256<ushort>
w Vector256<ushort>

Returns

(Vector256<ushort> args0, Vector256<ushort> args1, Vector256<ushort> args2, Vector256<ushort> args3)

YGroup4Zip(IWVectorTraits256, Vector256<int>, Vector256<int>, Vector256<int>, Vector256<int>)

[CLSCompliant(false)]
public static (Vector256<int> Data0, Vector256<int> Data1, Vector256<int> Data2, Vector256<int> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<int> x, Vector256<int> y, Vector256<int> z, Vector256<int> w)

Parameters

athis IWVectorTraits256
x Vector256<int>
y Vector256<int>
z Vector256<int>
w Vector256<int>

Returns

(Vector256<int> args0, Vector256<int> args1, Vector256<int> args2, Vector256<int> args3)

YGroup4Zip(IWVectorTraits256, Vector256<uint>, Vector256<uint>, Vector256<uint>, Vector256<uint>)

[CLSCompliant(false)]
public static (Vector256<uint> Data0, Vector256<uint> Data1, Vector256<uint> Data2, Vector256<uint> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<uint> x, Vector256<uint> y, Vector256<uint> z, Vector256<uint> w)

Parameters

athis IWVectorTraits256
x Vector256<uint>
y Vector256<uint>
z Vector256<uint>
w Vector256<uint>

Returns

(Vector256<uint> args0, Vector256<uint> args1, Vector256<uint> args2, Vector256<uint> args3)

YGroup4Zip(IWVectorTraits256, Vector256<long>, Vector256<long>, Vector256<long>, Vector256<long>)

[CLSCompliant(false)]
public static (Vector256<long> Data0, Vector256<long> Data1, Vector256<long> Data2, Vector256<long> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<long> x, Vector256<long> y, Vector256<long> z, Vector256<long> w)

Parameters

athis IWVectorTraits256
x Vector256<long>
y Vector256<long>
z Vector256<long>
w Vector256<long>

Returns

(Vector256<long> args0, Vector256<long> args1, Vector256<long> args2, Vector256<long> args3)

YGroup4Zip(IWVectorTraits256, Vector256<ulong>, Vector256<ulong>, Vector256<ulong>, Vector256<ulong>)

[CLSCompliant(false)]
public static (Vector256<ulong> Data0, Vector256<ulong> Data1, Vector256<ulong> Data2, Vector256<ulong> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<ulong> x, Vector256<ulong> y, Vector256<ulong> z, Vector256<ulong> w)

Parameters

athis IWVectorTraits256
x Vector256<ulong>
y Vector256<ulong>
z Vector256<ulong>
w Vector256<ulong>

Returns

(Vector256<ulong> args0, Vector256<ulong> args1, Vector256<ulong> args2, Vector256<ulong> args3)

YGroup4Zip(IWVectorTraits256, Vector256<ExInt128>, Vector256<ExInt128>, Vector256<ExInt128>, Vector256<ExInt128>)

[CLSCompliant(false)]
public static (Vector256<ExInt128> Data0, Vector256<ExInt128> Data1, Vector256<ExInt128> Data2, Vector256<ExInt128> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<ExInt128> x, Vector256<ExInt128> y, Vector256<ExInt128> z, Vector256<ExInt128> w)

Parameters

athis IWVectorTraits256
x Vector256<ExInt128>
y Vector256<ExInt128>
z Vector256<ExInt128>
w Vector256<ExInt128>

Returns

(Vector256<ExInt128> X, Vector256<ExInt128> Y, Vector256<ExInt128> Z, Vector256<ExInt128> W)

YGroup4Zip(IWVectorTraits256, Vector256<ExUInt128>, Vector256<ExUInt128>, Vector256<ExUInt128>, Vector256<ExUInt128>)

[CLSCompliant(false)]
public static (Vector256<ExUInt128> Data0, Vector256<ExUInt128> Data1, Vector256<ExUInt128> Data2, Vector256<ExUInt128> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<ExUInt128> x, Vector256<ExUInt128> y, Vector256<ExUInt128> z, Vector256<ExUInt128> w)

Parameters

athis IWVectorTraits256
x Vector256<ExUInt128>
y Vector256<ExUInt128>
z Vector256<ExUInt128>
w Vector256<ExUInt128>

Returns

(Vector256<ExUInt128> X, Vector256<ExUInt128> Y, Vector256<ExUInt128> Z, Vector256<ExUInt128> W)

YGroup4Zip(IWVectorTraits256, Vector256<Int128>, Vector256<Int128>, Vector256<Int128>, Vector256<Int128>)

[CLSCompliant(false)]
public static (Vector256<Int128> Data0, Vector256<Int128> Data1, Vector256<Int128> Data2, Vector256<Int128> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<Int128> x, Vector256<Int128> y, Vector256<Int128> z, Vector256<Int128> w)

Parameters

athis IWVectorTraits256
x Vector256<Int128>
y Vector256<Int128>
z Vector256<Int128>
w Vector256<Int128>

Returns

(Vector256<Int128> X, Vector256<Int128> Y, Vector256<Int128> Z, Vector256<Int128> W)

YGroup4Zip(IWVectorTraits256, Vector256<UInt128>, Vector256<UInt128>, Vector256<UInt128>, Vector256<UInt128>)

[CLSCompliant(false)]
public static (Vector256<UInt128> Data0, Vector256<UInt128> Data1, Vector256<UInt128> Data2, Vector256<UInt128> Data3) YGroup4Zip(this IWVectorTraits256 athis, Vector256<UInt128> x, Vector256<UInt128> y, Vector256<UInt128> z, Vector256<UInt128> w)

Parameters

athis IWVectorTraits256
x Vector256<UInt128>
y Vector256<UInt128>
z Vector256<UInt128>
w Vector256<UInt128>

Returns

(Vector256<UInt128> X, Vector256<UInt128> Y, Vector256<UInt128> Z, Vector256<UInt128> W)