Table of Contents

Method YGroup1ToGroup4

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup1ToGroup4<T>(IVectorTraits, Vector<T>)

Convert a 1-element group, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, x). View for element: element_ref(i, result0, result1, result2, result4) := x[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 (Vector<T> Result0, Vector<T> Result1, Vector<T> Result2, Vector<T> Result3) YGroup1ToGroup4<T>(this IVectorTraits athis, Vector<T> x) where T : struct

Parameters

athis IVectorTraits
x Vector<T>

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

Returns

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

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

Type Parameters

T

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

YGroup1ToGroup4(IVectorTraits, Vector<float>)

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

[CLSCompliant(false)]
public static (Vector<float> Result0, Vector<float> Result1, Vector<float> Result2, Vector<float> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<float> x)

Parameters

athis IVectorTraits
x Vector<float>

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

Returns

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

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

YGroup1ToGroup4(IVectorTraits, Vector<double>)

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

[CLSCompliant(false)]
public static (Vector<double> Result0, Vector<double> Result1, Vector<double> Result2, Vector<double> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<double> x)

Parameters

athis IVectorTraits
x Vector<double>

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

Returns

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

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

YGroup1ToGroup4(IVectorTraits, Vector<sbyte>)

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

[CLSCompliant(false)]
public static (Vector<sbyte> Result0, Vector<sbyte> Result1, Vector<sbyte> Result2, Vector<sbyte> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<sbyte> x)

Parameters

athis IVectorTraits
x Vector<sbyte>

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

Returns

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

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

YGroup1ToGroup4(IVectorTraits, Vector<byte>)

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

[CLSCompliant(false)]
public static (Vector<byte> Result0, Vector<byte> Result1, Vector<byte> Result2, Vector<byte> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<byte> x)

Parameters

athis IVectorTraits
x Vector<byte>

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

Returns

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

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

YGroup1ToGroup4(IVectorTraits, Vector<short>)

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

[CLSCompliant(false)]
public static (Vector<short> Result0, Vector<short> Result1, Vector<short> Result2, Vector<short> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<short> x)

Parameters

athis IVectorTraits
x Vector<short>

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

Returns

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

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

YGroup1ToGroup4(IVectorTraits, Vector<ushort>)

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

[CLSCompliant(false)]
public static (Vector<ushort> Result0, Vector<ushort> Result1, Vector<ushort> Result2, Vector<ushort> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<ushort> x)

Parameters

athis IVectorTraits
x Vector<ushort>

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

Returns

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

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

YGroup1ToGroup4(IVectorTraits, Vector<int>)

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

[CLSCompliant(false)]
public static (Vector<int> Result0, Vector<int> Result1, Vector<int> Result2, Vector<int> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<int> x)

Parameters

athis IVectorTraits
x Vector<int>

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

Returns

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

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

YGroup1ToGroup4(IVectorTraits, Vector<uint>)

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

[CLSCompliant(false)]
public static (Vector<uint> Result0, Vector<uint> Result1, Vector<uint> Result2, Vector<uint> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<uint> x)

Parameters

athis IVectorTraits
x Vector<uint>

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

Returns

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

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

YGroup1ToGroup4(IVectorTraits, Vector<long>)

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

[CLSCompliant(false)]
public static (Vector<long> Result0, Vector<long> Result1, Vector<long> Result2, Vector<long> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<long> x)

Parameters

athis IVectorTraits
x Vector<long>

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

Returns

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

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

YGroup1ToGroup4(IVectorTraits, Vector<ulong>)

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

[CLSCompliant(false)]
public static (Vector<ulong> Result0, Vector<ulong> Result1, Vector<ulong> Result2, Vector<ulong> Result3) YGroup1ToGroup4(this IVectorTraits athis, Vector<ulong> x)

Parameters

athis IVectorTraits
x Vector<ulong>

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

Returns

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

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