Table of Contents

Method YGroup3Zip

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup3Zip<T>(IWVectorTraits512, Vector512<T>, Vector512<T>, Vector512<T>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[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) YGroup3Zip<T>(this IWVectorTraits512 athis, Vector512<T> x, Vector512<T> y, Vector512<T> z) where T : struct

Parameters

athis IWVectorTraits512
x Vector512<T>

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

y Vector512<T>

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

z Vector512<T>

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

Returns

(Vector512<T> Result0, Vector512<T> Result1, Vector512<T> Result2)

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

Type Parameters

T

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

YGroup3Zip(IWVectorTraits512, Vector512<float>, Vector512<float>, Vector512<float>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<float> Data0, Vector512<float> Data1, Vector512<float> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<float> x, Vector512<float> y, Vector512<float> z)

Parameters

athis IWVectorTraits512
x 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分量所组成的向量).

Returns

(Vector512<float> Result0, Vector512<float> Result1, Vector512<float> Result2)

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

YGroup3Zip(IWVectorTraits512, Vector512<double>, Vector512<double>, Vector512<double>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<double> Data0, Vector512<double> Data1, Vector512<double> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<double> x, Vector512<double> y, Vector512<double> z)

Parameters

athis IWVectorTraits512
x Vector512<double>

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

y Vector512<double>

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

z Vector512<double>

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

Returns

(Vector512<double> Result0, Vector512<double> Result1, Vector512<double> Result2)

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

YGroup3Zip(IWVectorTraits512, Vector512<sbyte>, Vector512<sbyte>, Vector512<sbyte>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<sbyte> Data0, Vector512<sbyte> Data1, Vector512<sbyte> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<sbyte> x, Vector512<sbyte> y, Vector512<sbyte> z)

Parameters

athis IWVectorTraits512
x Vector512<sbyte>

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

y Vector512<sbyte>

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

z Vector512<sbyte>

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

Returns

(Vector512<sbyte> args0, Vector512<sbyte> args1, Vector512<sbyte> args2)

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

YGroup3Zip(IWVectorTraits512, Vector512<byte>, Vector512<byte>, Vector512<byte>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<byte> Data0, Vector512<byte> Data1, Vector512<byte> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<byte> x, Vector512<byte> y, Vector512<byte> z)

Parameters

athis IWVectorTraits512
x Vector512<byte>

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

y Vector512<byte>

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

z Vector512<byte>

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

Returns

(Vector512<byte> args0, Vector512<byte> args1, Vector512<byte> args2)

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

YGroup3Zip(IWVectorTraits512, Vector512<short>, Vector512<short>, Vector512<short>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<short> Data0, Vector512<short> Data1, Vector512<short> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<short> x, Vector512<short> y, Vector512<short> z)

Parameters

athis IWVectorTraits512
x Vector512<short>

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

y Vector512<short>

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

z Vector512<short>

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

Returns

(Vector512<short> args0, Vector512<short> args1, Vector512<short> args2)

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

YGroup3Zip(IWVectorTraits512, Vector512<ushort>, Vector512<ushort>, Vector512<ushort>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<ushort> Data0, Vector512<ushort> Data1, Vector512<ushort> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<ushort> x, Vector512<ushort> y, Vector512<ushort> z)

Parameters

athis IWVectorTraits512
x Vector512<ushort>

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

y Vector512<ushort>

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

z Vector512<ushort>

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

Returns

(Vector512<ushort> args0, Vector512<ushort> args1, Vector512<ushort> args2)

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

YGroup3Zip(IWVectorTraits512, Vector512<int>, Vector512<int>, Vector512<int>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<int> Data0, Vector512<int> Data1, Vector512<int> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<int> x, Vector512<int> y, Vector512<int> z)

Parameters

athis IWVectorTraits512
x Vector512<int>

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

y Vector512<int>

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

z Vector512<int>

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

Returns

(Vector512<int> args0, Vector512<int> args1, Vector512<int> args2)

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

YGroup3Zip(IWVectorTraits512, Vector512<uint>, Vector512<uint>, Vector512<uint>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<uint> Data0, Vector512<uint> Data1, Vector512<uint> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<uint> x, Vector512<uint> y, Vector512<uint> z)

Parameters

athis IWVectorTraits512
x Vector512<uint>

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

y Vector512<uint>

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

z Vector512<uint>

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

Returns

(Vector512<uint> args0, Vector512<uint> args1, Vector512<uint> args2)

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

YGroup3Zip(IWVectorTraits512, Vector512<long>, Vector512<long>, Vector512<long>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<long> Data0, Vector512<long> Data1, Vector512<long> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<long> x, Vector512<long> y, Vector512<long> z)

Parameters

athis IWVectorTraits512
x Vector512<long>

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

y Vector512<long>

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

z Vector512<long>

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

Returns

(Vector512<long> args0, Vector512<long> args1, Vector512<long> args2)

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

YGroup3Zip(IWVectorTraits512, Vector512<ulong>, Vector512<ulong>, Vector512<ulong>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector512<ulong> Data0, Vector512<ulong> Data1, Vector512<ulong> Data2) YGroup3Zip(this IWVectorTraits512 athis, Vector512<ulong> x, Vector512<ulong> y, Vector512<ulong> z)

Parameters

athis IWVectorTraits512
x Vector512<ulong>

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

y Vector512<ulong>

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

z Vector512<ulong>

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

Returns

(Vector512<ulong> args0, Vector512<ulong> args1, Vector512<ulong> args2)

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