Method YGroup1ToGroup4WithW
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YGroup1ToGroup4WithW<T>(IWVectorTraits256, Vector256<T>, Vector256<T>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := 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 (Vector256<T> Result0, Vector256<T> Result1, Vector256<T> Result2, Vector256<T> Result3) YGroup1ToGroup4WithW<T>(this IWVectorTraits256 athis, Vector256<T> x, Vector256<T> w) where T : struct
Parameters
athis
IWVectorTraits256x
Vector256<T>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<T>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<T> Result0, Vector256<T> Result1, Vector256<T> Result2, Vector256<T> Result3)
Returns the interleaved data (返回交织后数据).
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<float>, Vector256<float>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<float> Result0, Vector256<float> Result1, Vector256<float> Result2, Vector256<float> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<float> x, Vector256<float> w)
Parameters
athis
IWVectorTraits256x
Vector256<float>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<float>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<float> Result0, Vector256<float> Result1, Vector256<float> Result2, Vector256<float> Result3)
Returns the interleaved data (返回交织后数据).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<double>, Vector256<double>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<double> Result0, Vector256<double> Result1, Vector256<double> Result2, Vector256<double> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<double> x, Vector256<double> w)
Parameters
athis
IWVectorTraits256x
Vector256<double>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<double>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<double> Result0, Vector256<double> Result1, Vector256<double> Result2, Vector256<double> Result3)
Returns the interleaved data (返回交织后数据).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<sbyte>, Vector256<sbyte>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<sbyte> Result0, Vector256<sbyte> Result1, Vector256<sbyte> Result2, Vector256<sbyte> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<sbyte> x, Vector256<sbyte> w)
Parameters
athis
IWVectorTraits256x
Vector256<sbyte>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<sbyte>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<sbyte> args0, Vector256<sbyte> args1, Vector256<sbyte> args2, Vector256<sbyte> args3)
Returns the interleaved data (返回交织后数据).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<byte>, Vector256<byte>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<byte> Result0, Vector256<byte> Result1, Vector256<byte> Result2, Vector256<byte> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<byte> x, Vector256<byte> w)
Parameters
athis
IWVectorTraits256x
Vector256<byte>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<byte>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<byte> args0, Vector256<byte> args1, Vector256<byte> args2, Vector256<byte> args3)
Returns the interleaved data (返回交织后数据).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<short>, Vector256<short>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<short> Result0, Vector256<short> Result1, Vector256<short> Result2, Vector256<short> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<short> x, Vector256<short> w)
Parameters
athis
IWVectorTraits256x
Vector256<short>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<short>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<short> args0, Vector256<short> args1, Vector256<short> args2, Vector256<short> args3)
Returns the interleaved data (返回交织后数据).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<ushort>, Vector256<ushort>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<ushort> Result0, Vector256<ushort> Result1, Vector256<ushort> Result2, Vector256<ushort> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<ushort> x, Vector256<ushort> w)
Parameters
athis
IWVectorTraits256x
Vector256<ushort>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<ushort>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<ushort> args0, Vector256<ushort> args1, Vector256<ushort> args2, Vector256<ushort> args3)
Returns the interleaved data (返回交织后数据).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<int>, Vector256<int>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<int> Result0, Vector256<int> Result1, Vector256<int> Result2, Vector256<int> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<int> x, Vector256<int> w)
Parameters
athis
IWVectorTraits256x
Vector256<int>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<int>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<int> args0, Vector256<int> args1, Vector256<int> args2, Vector256<int> args3)
Returns the interleaved data (返回交织后数据).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<uint>, Vector256<uint>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<uint> Result0, Vector256<uint> Result1, Vector256<uint> Result2, Vector256<uint> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<uint> x, Vector256<uint> w)
Parameters
athis
IWVectorTraits256x
Vector256<uint>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<uint>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<uint> args0, Vector256<uint> args1, Vector256<uint> args2, Vector256<uint> args3)
Returns the interleaved data (返回交织后数据).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<long>, Vector256<long>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<long> Result0, Vector256<long> Result1, Vector256<long> Result2, Vector256<long> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<long> x, Vector256<long> w)
Parameters
athis
IWVectorTraits256x
Vector256<long>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<long>A vector consisting purely of W-components (纯由W分量所组成的向量).
Returns
- (Vector256<long> args0, Vector256<long> args1, Vector256<long> args2, Vector256<long> args3)
Returns the interleaved data (返回交织后数据).
YGroup1ToGroup4WithW(IWVectorTraits256, Vector256<ulong>, Vector256<ulong>)
Convert a 1-element group and w argument, to a 4-element group. It also converts grayscale pixel data to packed RGBA pixel data (将1-元素组及w参数, 转为4-元素组. 它还能将 灰度像素数据, 转换为 已打包的RGBA像素数据).
Mnemonic: View for group: (result0, result1, result2, result4) = YGroup4Zip(x, x, x, w)
. View for element: element_ref(i, result0, result1, result2, result4) := ((i%4)<3)?( x[i2] ):( w[i2] )
, i2 := i/4
.
[CLSCompliant(false)]
public static (Vector256<ulong> Result0, Vector256<ulong> Result1, Vector256<ulong> Result2, Vector256<ulong> Result3) YGroup1ToGroup4WithW(this IWVectorTraits256 athis, Vector256<ulong> x, Vector256<ulong> w)
Parameters
athis
IWVectorTraits256x
Vector256<ulong>A vector consisting purely of X-components (纯由X分量所组成的向量).
w
Vector256<ulong>A vector consisting purely of W-components (纯由W分量所组成的向量).