Table of Contents

Method YGroup4ToGroup3

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup4ToGroup3<T>(IWVectorTraits256, Vector256<T>, Vector256<T>, Vector256<T>, Vector256<T>)

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[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> Result0, Vector256<T> Result1, Vector256<T> Result2) YGroup4ToGroup3<T>(this IWVectorTraits256 athis, Vector256<T> data0, Vector256<T> data1, Vector256<T> data2, Vector256<T> data3) where T : struct

Parameters

athis IWVectorTraits256
data0 Vector256<T>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<T>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<T>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<T>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

Type Parameters

T

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

YGroup4ToGroup3(IWVectorTraits256, Vector256<float>, Vector256<float>, Vector256<float>, Vector256<float>)

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<float> Result0, Vector256<float> Result1, Vector256<float> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<float> data0, Vector256<float> data1, Vector256<float> data2, Vector256<float> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<float>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<float>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<float>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<float>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

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

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<double> Result0, Vector256<double> Result1, Vector256<double> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<double> data0, Vector256<double> data1, Vector256<double> data2, Vector256<double> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<double>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<double>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<double>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<double>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

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

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<sbyte> Result0, Vector256<sbyte> Result1, Vector256<sbyte> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<sbyte> data0, Vector256<sbyte> data1, Vector256<sbyte> data2, Vector256<sbyte> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<sbyte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<sbyte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<sbyte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<sbyte>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

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

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<byte> Result0, Vector256<byte> Result1, Vector256<byte> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<byte> data0, Vector256<byte> data1, Vector256<byte> data2, Vector256<byte> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<byte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<byte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<byte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<byte>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

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

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<short> Result0, Vector256<short> Result1, Vector256<short> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<short> data0, Vector256<short> data1, Vector256<short> data2, Vector256<short> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<short>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<short>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<short>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<short>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

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

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<ushort> Result0, Vector256<ushort> Result1, Vector256<ushort> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<ushort> data0, Vector256<ushort> data1, Vector256<ushort> data2, Vector256<ushort> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<ushort>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<ushort>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<ushort>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<ushort>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

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

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<int> Result0, Vector256<int> Result1, Vector256<int> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<int> data0, Vector256<int> data1, Vector256<int> data2, Vector256<int> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<int>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<int>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<int>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<int>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

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

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<uint> Result0, Vector256<uint> Result1, Vector256<uint> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<uint> data0, Vector256<uint> data1, Vector256<uint> data2, Vector256<uint> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<uint>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<uint>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<uint>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<uint>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

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

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<long> Result0, Vector256<long> Result1, Vector256<long> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<long> data0, Vector256<long> data1, Vector256<long> data2, Vector256<long> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<long>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<long>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<long>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<long>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).

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

Convert a 4-element group, to a 3-element group. It also converts packed RGBA pixel data to packed RGB pixel data (将4-元素组, 转为3-元素组. 它还能将 已打包的RGBA像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(YGroup4Unzip(data0, data1, data2, data3))). View for element: element_ref(i, result0, result1, result2) := element_ref((i/3)*4+(i%3), data0, data1, data2, data3).

[CLSCompliant(false)]
public static (Vector256<ulong> Result0, Vector256<ulong> Result1, Vector256<ulong> Result2) YGroup4ToGroup3(this IWVectorTraits256 athis, Vector256<ulong> data0, Vector256<ulong> data1, Vector256<ulong> data2, Vector256<ulong> data3)

Parameters

athis IWVectorTraits256
data0 Vector256<ulong>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector256<ulong>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector256<ulong>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

data3 Vector256<ulong>

A vector made of 4-element groups - Part 3 (由4元素组所组成的向量 - 第3部分).

Returns

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

Returns the converted data. (返回转换后数据).