Table of Contents

Method YGroup1ToGroup3

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YGroup1ToGroup3<T>(Vector<T>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

[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 (Vector<T> Result0, Vector<T> Result1, Vector<T> Result2) YGroup1ToGroup3<T>(Vector<T> x) where T : struct

Parameters

x Vector<T>

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

Returns

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

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

Type Parameters

T

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

See Also

YGroup1ToGroup3(Vector<float>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static (Vector<float> Result0, Vector<float> Result1, Vector<float> Result2) YGroup1ToGroup3(Vector<float> x)

Parameters

x Vector<float>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<double>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static (Vector<double> Result0, Vector<double> Result1, Vector<double> Result2) YGroup1ToGroup3(Vector<double> x)

Parameters

x Vector<double>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<sbyte>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

[CLSCompliant(false)]
public static (Vector<sbyte> Result0, Vector<sbyte> Result1, Vector<sbyte> Result2) YGroup1ToGroup3(Vector<sbyte> x)

Parameters

x Vector<sbyte>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<byte>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static (Vector<byte> Result0, Vector<byte> Result1, Vector<byte> Result2) YGroup1ToGroup3(Vector<byte> x)

Parameters

x Vector<byte>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<short>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static (Vector<short> Result0, Vector<short> Result1, Vector<short> Result2) YGroup1ToGroup3(Vector<short> x)

Parameters

x Vector<short>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<ushort>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

[CLSCompliant(false)]
public static (Vector<ushort> Result0, Vector<ushort> Result1, Vector<ushort> Result2) YGroup1ToGroup3(Vector<ushort> x)

Parameters

x Vector<ushort>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<int>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static (Vector<int> Result0, Vector<int> Result1, Vector<int> Result2) YGroup1ToGroup3(Vector<int> x)

Parameters

x Vector<int>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<uint>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

[CLSCompliant(false)]
public static (Vector<uint> Result0, Vector<uint> Result1, Vector<uint> Result2) YGroup1ToGroup3(Vector<uint> x)

Parameters

x Vector<uint>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<long>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static (Vector<long> Result0, Vector<long> Result1, Vector<long> Result2) YGroup1ToGroup3(Vector<long> x)

Parameters

x Vector<long>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<ulong>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

[CLSCompliant(false)]
public static (Vector<ulong> Result0, Vector<ulong> Result1, Vector<ulong> Result2) YGroup1ToGroup3(Vector<ulong> x)

Parameters

x Vector<ulong>

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

Returns

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

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

See Also

YGroup1ToGroup3(Vector<float>, out Vector<float>, out Vector<float>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static Vector<float> YGroup1ToGroup3(Vector<float> x, out Vector<float> result1, out Vector<float> result2)

Parameters

x Vector<float>

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

result1 Vector<float>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<float>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<float>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup1ToGroup3(Vector<double>, out Vector<double>, out Vector<double>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static Vector<double> YGroup1ToGroup3(Vector<double> x, out Vector<double> result1, out Vector<double> result2)

Parameters

x Vector<double>

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

result1 Vector<double>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<double>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<double>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup1ToGroup3(Vector<sbyte>, out Vector<sbyte>, out Vector<sbyte>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

[CLSCompliant(false)]
public static Vector<sbyte> YGroup1ToGroup3(Vector<sbyte> x, out Vector<sbyte> result1, out Vector<sbyte> result2)

Parameters

x Vector<sbyte>

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

result1 Vector<sbyte>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<sbyte>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<sbyte>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup1ToGroup3(Vector<byte>, out Vector<byte>, out Vector<byte>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static Vector<byte> YGroup1ToGroup3(Vector<byte> x, out Vector<byte> result1, out Vector<byte> result2)

Parameters

x Vector<byte>

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

result1 Vector<byte>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<byte>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<byte>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup1ToGroup3(Vector<short>, out Vector<short>, out Vector<short>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static Vector<short> YGroup1ToGroup3(Vector<short> x, out Vector<short> result1, out Vector<short> result2)

Parameters

x Vector<short>

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

result1 Vector<short>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<short>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<short>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup1ToGroup3(Vector<ushort>, out Vector<ushort>, out Vector<ushort>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

[CLSCompliant(false)]
public static Vector<ushort> YGroup1ToGroup3(Vector<ushort> x, out Vector<ushort> result1, out Vector<ushort> result2)

Parameters

x Vector<ushort>

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

result1 Vector<ushort>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<ushort>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<ushort>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup1ToGroup3(Vector<int>, out Vector<int>, out Vector<int>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static Vector<int> YGroup1ToGroup3(Vector<int> x, out Vector<int> result1, out Vector<int> result2)

Parameters

x Vector<int>

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

result1 Vector<int>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<int>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<int>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup1ToGroup3(Vector<uint>, out Vector<uint>, out Vector<uint>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

[CLSCompliant(false)]
public static Vector<uint> YGroup1ToGroup3(Vector<uint> x, out Vector<uint> result1, out Vector<uint> result2)

Parameters

x Vector<uint>

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

result1 Vector<uint>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<uint>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<uint>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup1ToGroup3(Vector<long>, out Vector<long>, out Vector<long>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

public static Vector<long> YGroup1ToGroup3(Vector<long> x, out Vector<long> result1, out Vector<long> result2)

Parameters

x Vector<long>

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

result1 Vector<long>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<long>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<long>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup1ToGroup3(Vector<ulong>, out Vector<ulong>, out Vector<ulong>)

Convert a 1-element group, to a 3-element group. It also converts grayscale pixel data to packed RGB pixel data (将1-元素组, 转为3-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGB像素数据). Mnemonic: View for group: (result0, result1, result2) = YGroup3Zip(x, x, x). View for element: element_ref(i, result0, result1, result2) := x[i/3].

[CLSCompliant(false)]
public static Vector<ulong> YGroup1ToGroup3(Vector<ulong> x, out Vector<ulong> result1, out Vector<ulong> result2)

Parameters

x Vector<ulong>

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

result1 Vector<ulong>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<ulong>

Returns part 2 of the converted data (返回转换后数据的第2部分).

Returns

Vector<ulong>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also