Method YGroup1ToGroup3
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YGroup1ToGroup3<T>(IWVectorTraits128, Vector128<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]
.
[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 (Vector128<T> Result0, Vector128<T> Result1, Vector128<T> Result2) YGroup1ToGroup3<T>(this IWVectorTraits128 athis, Vector128<T> x) where T : struct
Parameters
athis
IWVectorTraits128x
Vector128<T>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<T> Result0, Vector128<T> Result1, Vector128<T> Result2)
Returns the converted data. (返回转换后数据).
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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]
.
[CLSCompliant(false)]
public static (Vector128<float> Result0, Vector128<float> Result1, Vector128<float> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<float> x)
Parameters
athis
IWVectorTraits128x
Vector128<float>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<float> Result0, Vector128<float> Result1, Vector128<float> Result2)
Returns the converted data. (返回转换后数据).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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]
.
[CLSCompliant(false)]
public static (Vector128<double> Result0, Vector128<double> Result1, Vector128<double> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<double> x)
Parameters
athis
IWVectorTraits128x
Vector128<double>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<double> Result0, Vector128<double> Result1, Vector128<double> Result2)
Returns the converted data. (返回转换后数据).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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 (Vector128<sbyte> Result0, Vector128<sbyte> Result1, Vector128<sbyte> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<sbyte> x)
Parameters
athis
IWVectorTraits128x
Vector128<sbyte>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<sbyte> args0, Vector128<sbyte> args1, Vector128<sbyte> args2)
Returns the converted data. (返回转换后数据).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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]
.
[CLSCompliant(false)]
public static (Vector128<byte> Result0, Vector128<byte> Result1, Vector128<byte> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<byte> x)
Parameters
athis
IWVectorTraits128x
Vector128<byte>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<byte> args0, Vector128<byte> args1, Vector128<byte> args2)
Returns the converted data. (返回转换后数据).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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]
.
[CLSCompliant(false)]
public static (Vector128<short> Result0, Vector128<short> Result1, Vector128<short> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<short> x)
Parameters
athis
IWVectorTraits128x
Vector128<short>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<short> args0, Vector128<short> args1, Vector128<short> args2)
Returns the converted data. (返回转换后数据).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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 (Vector128<ushort> Result0, Vector128<ushort> Result1, Vector128<ushort> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<ushort> x)
Parameters
athis
IWVectorTraits128x
Vector128<ushort>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<ushort> args0, Vector128<ushort> args1, Vector128<ushort> args2)
Returns the converted data. (返回转换后数据).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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]
.
[CLSCompliant(false)]
public static (Vector128<int> Result0, Vector128<int> Result1, Vector128<int> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<int> x)
Parameters
athis
IWVectorTraits128x
Vector128<int>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<int> args0, Vector128<int> args1, Vector128<int> args2)
Returns the converted data. (返回转换后数据).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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 (Vector128<uint> Result0, Vector128<uint> Result1, Vector128<uint> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<uint> x)
Parameters
athis
IWVectorTraits128x
Vector128<uint>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<uint> args0, Vector128<uint> args1, Vector128<uint> args2)
Returns the converted data. (返回转换后数据).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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]
.
[CLSCompliant(false)]
public static (Vector128<long> Result0, Vector128<long> Result1, Vector128<long> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<long> x)
Parameters
athis
IWVectorTraits128x
Vector128<long>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<long> args0, Vector128<long> args1, Vector128<long> args2)
Returns the converted data. (返回转换后数据).
- See Also
YGroup1ToGroup3(IWVectorTraits128, Vector128<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 (Vector128<ulong> Result0, Vector128<ulong> Result1, Vector128<ulong> Result2) YGroup1ToGroup3(this IWVectorTraits128 athis, Vector128<ulong> x)
Parameters
athis
IWVectorTraits128x
Vector128<ulong>A vector consisting purely of X-components (纯由X分量所组成的向量).
Returns
- (Vector128<ulong> args0, Vector128<ulong> args1, Vector128<ulong> args2)
Returns the converted data. (返回转换后数据).
- See Also