Table of Contents

Method YGroup4Zip

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

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

Parameters

athis IWVectorTraits128
x Vector128<Int128>

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

y Vector128<Int128>

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

z Vector128<Int128>

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

w Vector128<Int128>

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

data1 Vector128<Int128>

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

data2 Vector128<Int128>

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

data3 Vector128<Int128>

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

Returns

Vector128<Int128>

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

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

Parameters

athis IWVectorTraits128
x Vector128<UInt128>

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

y Vector128<UInt128>

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

z Vector128<UInt128>

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

w Vector128<UInt128>

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

data1 Vector128<UInt128>

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

data2 Vector128<UInt128>

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

data3 Vector128<UInt128>

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

Returns

Vector128<UInt128>

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

YGroup4Zip<T>(IWVectorTraits128, Vector128<T>, Vector128<T>, Vector128<T>, Vector128<T>)

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

Parameters

athis IWVectorTraits128
x Vector128<T>

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

y Vector128<T>

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

z Vector128<T>

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

w Vector128<T>

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

Returns

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

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

Type Parameters

T

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

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

Parameters

athis IWVectorTraits128
x Vector128<float>

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

y Vector128<float>

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

z Vector128<float>

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

w Vector128<float>

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

Returns

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

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

YGroup4Zip(IWVectorTraits128, Vector128<double>, Vector128<double>, Vector128<double>, Vector128<double>)

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

Parameters

athis IWVectorTraits128
x Vector128<double>
y Vector128<double>
z Vector128<double>
w Vector128<double>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<sbyte>, Vector128<sbyte>, Vector128<sbyte>, Vector128<sbyte>)

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

Parameters

athis IWVectorTraits128
x Vector128<sbyte>
y Vector128<sbyte>
z Vector128<sbyte>
w Vector128<sbyte>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<byte>, Vector128<byte>, Vector128<byte>, Vector128<byte>)

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

Parameters

athis IWVectorTraits128
x Vector128<byte>
y Vector128<byte>
z Vector128<byte>
w Vector128<byte>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<short>, Vector128<short>, Vector128<short>, Vector128<short>)

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

Parameters

athis IWVectorTraits128
x Vector128<short>
y Vector128<short>
z Vector128<short>
w Vector128<short>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<ushort>, Vector128<ushort>, Vector128<ushort>, Vector128<ushort>)

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

Parameters

athis IWVectorTraits128
x Vector128<ushort>
y Vector128<ushort>
z Vector128<ushort>
w Vector128<ushort>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<int>, Vector128<int>, Vector128<int>, Vector128<int>)

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

Parameters

athis IWVectorTraits128
x Vector128<int>
y Vector128<int>
z Vector128<int>
w Vector128<int>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<uint>, Vector128<uint>, Vector128<uint>, Vector128<uint>)

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

Parameters

athis IWVectorTraits128
x Vector128<uint>
y Vector128<uint>
z Vector128<uint>
w Vector128<uint>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<long>, Vector128<long>, Vector128<long>, Vector128<long>)

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

Parameters

athis IWVectorTraits128
x Vector128<long>
y Vector128<long>
z Vector128<long>
w Vector128<long>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<ulong>, Vector128<ulong>, Vector128<ulong>, Vector128<ulong>)

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

Parameters

athis IWVectorTraits128
x Vector128<ulong>
y Vector128<ulong>
z Vector128<ulong>
w Vector128<ulong>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<ExInt128>, Vector128<ExInt128>, Vector128<ExInt128>, Vector128<ExInt128>)

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

Parameters

athis IWVectorTraits128
x Vector128<ExInt128>
y Vector128<ExInt128>
z Vector128<ExInt128>
w Vector128<ExInt128>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<ExUInt128>, Vector128<ExUInt128>, Vector128<ExUInt128>, Vector128<ExUInt128>)

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

Parameters

athis IWVectorTraits128
x Vector128<ExUInt128>
y Vector128<ExUInt128>
z Vector128<ExUInt128>
w Vector128<ExUInt128>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<Int128>, Vector128<Int128>, Vector128<Int128>, Vector128<Int128>)

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

Parameters

athis IWVectorTraits128
x Vector128<Int128>
y Vector128<Int128>
z Vector128<Int128>
w Vector128<Int128>

Returns

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

YGroup4Zip(IWVectorTraits128, Vector128<UInt128>, Vector128<UInt128>, Vector128<UInt128>, Vector128<UInt128>)

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

Parameters

athis IWVectorTraits128
x Vector128<UInt128>
y Vector128<UInt128>
z Vector128<UInt128>
w Vector128<UInt128>

Returns

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