Table of Contents

Method YGroup3Zip

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

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

Parameters

athis IWVectorTraits256
x Vector256<T>

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

y Vector256<T>

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

z Vector256<T>

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

Returns

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

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

Type Parameters

T

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

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

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

Returns

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

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

YGroup3Zip(IWVectorTraits256, Vector256<double>, Vector256<double>, Vector256<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 (Vector256<double> Data0, Vector256<double> Data1, Vector256<double> Data2) YGroup3Zip(this IWVectorTraits256 athis, Vector256<double> x, Vector256<double> y, Vector256<double> z)

Parameters

athis IWVectorTraits256
x Vector256<double>

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

y Vector256<double>

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

z Vector256<double>

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

Returns

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

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

YGroup3Zip(IWVectorTraits256, Vector256<sbyte>, Vector256<sbyte>, Vector256<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 (Vector256<sbyte> Data0, Vector256<sbyte> Data1, Vector256<sbyte> Data2) YGroup3Zip(this IWVectorTraits256 athis, Vector256<sbyte> x, Vector256<sbyte> y, Vector256<sbyte> z)

Parameters

athis IWVectorTraits256
x Vector256<sbyte>

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

y Vector256<sbyte>

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

z Vector256<sbyte>

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

Returns

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

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

YGroup3Zip(IWVectorTraits256, Vector256<byte>, Vector256<byte>, Vector256<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 (Vector256<byte> Data0, Vector256<byte> Data1, Vector256<byte> Data2) YGroup3Zip(this IWVectorTraits256 athis, Vector256<byte> x, Vector256<byte> y, Vector256<byte> z)

Parameters

athis IWVectorTraits256
x Vector256<byte>

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

y Vector256<byte>

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

z Vector256<byte>

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

Returns

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

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

YGroup3Zip(IWVectorTraits256, Vector256<short>, Vector256<short>, Vector256<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 (Vector256<short> Data0, Vector256<short> Data1, Vector256<short> Data2) YGroup3Zip(this IWVectorTraits256 athis, Vector256<short> x, Vector256<short> y, Vector256<short> z)

Parameters

athis IWVectorTraits256
x Vector256<short>

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

y Vector256<short>

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

z Vector256<short>

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

Returns

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

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

YGroup3Zip(IWVectorTraits256, Vector256<ushort>, Vector256<ushort>, Vector256<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 (Vector256<ushort> Data0, Vector256<ushort> Data1, Vector256<ushort> Data2) YGroup3Zip(this IWVectorTraits256 athis, Vector256<ushort> x, Vector256<ushort> y, Vector256<ushort> z)

Parameters

athis IWVectorTraits256
x Vector256<ushort>

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

y Vector256<ushort>

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

z Vector256<ushort>

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

Returns

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

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

YGroup3Zip(IWVectorTraits256, Vector256<int>, Vector256<int>, Vector256<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 (Vector256<int> Data0, Vector256<int> Data1, Vector256<int> Data2) YGroup3Zip(this IWVectorTraits256 athis, Vector256<int> x, Vector256<int> y, Vector256<int> z)

Parameters

athis IWVectorTraits256
x Vector256<int>

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

y Vector256<int>

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

z Vector256<int>

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

Returns

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

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

YGroup3Zip(IWVectorTraits256, Vector256<uint>, Vector256<uint>, Vector256<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 (Vector256<uint> Data0, Vector256<uint> Data1, Vector256<uint> Data2) YGroup3Zip(this IWVectorTraits256 athis, Vector256<uint> x, Vector256<uint> y, Vector256<uint> z)

Parameters

athis IWVectorTraits256
x Vector256<uint>

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

y Vector256<uint>

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

z Vector256<uint>

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

Returns

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

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

YGroup3Zip(IWVectorTraits256, Vector256<long>, Vector256<long>, Vector256<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 (Vector256<long> Data0, Vector256<long> Data1, Vector256<long> Data2) YGroup3Zip(this IWVectorTraits256 athis, Vector256<long> x, Vector256<long> y, Vector256<long> z)

Parameters

athis IWVectorTraits256
x Vector256<long>

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

y Vector256<long>

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

z Vector256<long>

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

Returns

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

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

YGroup3Zip(IWVectorTraits256, Vector256<ulong>, Vector256<ulong>, Vector256<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 (Vector256<ulong> Data0, Vector256<ulong> Data1, Vector256<ulong> Data2) YGroup3Zip(this IWVectorTraits256 athis, Vector256<ulong> x, Vector256<ulong> y, Vector256<ulong> z)

Parameters

athis IWVectorTraits256
x Vector256<ulong>

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

y Vector256<ulong>

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

z Vector256<ulong>

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

Returns

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

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