Table of Contents

Method Widen

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

Widen<T, TOut>(IWVectorTraits256, Vector256<T>, out Vector256<TOut>, out Vector256<TOut>)

Widens a Vector256<T> into two Vector256<T> instances - Generic version (将一个 Vector256<T> 扩宽为两个 Vector256<T> 实例 - 泛型版). Mnemonic: element_ref(i, lower, upper) := widen(source[i]).

[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 (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
[CLSCompliant(false)]
public static void Widen<T, TOut>(this IWVectorTraits256 athis, Vector256<T> source, out Vector256<TOut> lower, out Vector256<TOut> upper) where T : struct where TOut : struct

Parameters

athis IWVectorTraits256
source Vector256<T>

The vector whose elements are to be widened (要扩宽其元素的向量).

lower Vector256<TOut>

When this method returns, contains the widened elements from lower indices in the source vector (当此方法返回时,包含源向量中来自较低下标的扩宽元素).

upper Vector256<TOut>

When this method returns, contains the widened elements from upper indices in the source vector (当此方法返回时,包含源向量中来自较高下标的扩宽元素).

Type Parameters

T

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

TOut

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

Exceptions

NotSupportedException

These element types(T, TOut) are not supported.

See Also

Widen(IWVectorTraits256, Vector256<float>)

Widens a Vector256<T> into two Vector256<T> instances - Generic version (将一个 Vector256<T> 扩宽为两个 Vector256<T> 实例 - 泛型版). Mnemonic: element_ref(i, lower, upper) := widen(source[i]).

[CLSCompliant(false)]
public static (Vector256<double> Lower, Vector256<double> Upper) Widen(this IWVectorTraits256 athis, Vector256<float> source)

Parameters

athis IWVectorTraits256
source Vector256<float>

The vector whose elements are to be widened (要扩宽其元素的向量).

Returns

(Vector256<double> Lower, Vector256<double> Upper)

A pair of vectors that contain the widened lower and upper halves of source (包含 source 的下半部和上半部的一对扩宽向量).

See Also

Widen(IWVectorTraits256, Vector256<sbyte>)

Widens a Vector256<T> into two Vector256<T> instances - Generic version (将一个 Vector256<T> 扩宽为两个 Vector256<T> 实例 - 泛型版). Mnemonic: element_ref(i, lower, upper) := widen(source[i]).

[CLSCompliant(false)]
public static (Vector256<short> Lower, Vector256<short> Upper) Widen(this IWVectorTraits256 athis, Vector256<sbyte> source)

Parameters

athis IWVectorTraits256
source Vector256<sbyte>

The vector whose elements are to be widened (要扩宽其元素的向量).

Returns

(Vector256<short> Lower, Vector256<short> Upper)

A pair of vectors that contain the widened lower and upper halves of source (包含 source 的下半部和上半部的一对扩宽向量).

See Also

Widen(IWVectorTraits256, Vector256<byte>)

Widens a Vector256<T> into two Vector256<T> instances - Generic version (将一个 Vector256<T> 扩宽为两个 Vector256<T> 实例 - 泛型版). Mnemonic: element_ref(i, lower, upper) := widen(source[i]).

[CLSCompliant(false)]
public static (Vector256<ushort> Lower, Vector256<ushort> Upper) Widen(this IWVectorTraits256 athis, Vector256<byte> source)

Parameters

athis IWVectorTraits256
source Vector256<byte>

The vector whose elements are to be widened (要扩宽其元素的向量).

Returns

(Vector256<ushort> Lower, Vector256<ushort> Upper)

A pair of vectors that contain the widened lower and upper halves of source (包含 source 的下半部和上半部的一对扩宽向量).

See Also

Widen(IWVectorTraits256, Vector256<short>)

Widens a Vector256<T> into two Vector256<T> instances - Generic version (将一个 Vector256<T> 扩宽为两个 Vector256<T> 实例 - 泛型版). Mnemonic: element_ref(i, lower, upper) := widen(source[i]).

[CLSCompliant(false)]
public static (Vector256<int> Lower, Vector256<int> Upper) Widen(this IWVectorTraits256 athis, Vector256<short> source)

Parameters

athis IWVectorTraits256
source Vector256<short>

The vector whose elements are to be widened (要扩宽其元素的向量).

Returns

(Vector256<int> Lower, Vector256<int> Upper)

A pair of vectors that contain the widened lower and upper halves of source (包含 source 的下半部和上半部的一对扩宽向量).

See Also

Widen(IWVectorTraits256, Vector256<ushort>)

Widens a Vector256<T> into two Vector256<T> instances - Generic version (将一个 Vector256<T> 扩宽为两个 Vector256<T> 实例 - 泛型版). Mnemonic: element_ref(i, lower, upper) := widen(source[i]).

[CLSCompliant(false)]
public static (Vector256<uint> Lower, Vector256<uint> Upper) Widen(this IWVectorTraits256 athis, Vector256<ushort> source)

Parameters

athis IWVectorTraits256
source Vector256<ushort>

The vector whose elements are to be widened (要扩宽其元素的向量).

Returns

(Vector256<uint> Lower, Vector256<uint> Upper)

A pair of vectors that contain the widened lower and upper halves of source (包含 source 的下半部和上半部的一对扩宽向量).

See Also

Widen(IWVectorTraits256, Vector256<int>)

Widens a Vector256<T> into two Vector256<T> instances - Generic version (将一个 Vector256<T> 扩宽为两个 Vector256<T> 实例 - 泛型版). Mnemonic: element_ref(i, lower, upper) := widen(source[i]).

[CLSCompliant(false)]
public static (Vector256<long> Lower, Vector256<long> Upper) Widen(this IWVectorTraits256 athis, Vector256<int> source)

Parameters

athis IWVectorTraits256
source Vector256<int>

The vector whose elements are to be widened (要扩宽其元素的向量).

Returns

(Vector256<long> Lower, Vector256<long> Upper)

A pair of vectors that contain the widened lower and upper halves of source (包含 source 的下半部和上半部的一对扩宽向量).

See Also

Widen(IWVectorTraits256, Vector256<uint>)

Widens a Vector256<T> into two Vector256<T> instances - Generic version (将一个 Vector256<T> 扩宽为两个 Vector256<T> 实例 - 泛型版). Mnemonic: element_ref(i, lower, upper) := widen(source[i]).

[CLSCompliant(false)]
public static (Vector256<ulong> Lower, Vector256<ulong> Upper) Widen(this IWVectorTraits256 athis, Vector256<uint> source)

Parameters

athis IWVectorTraits256
source Vector256<uint>

The vector whose elements are to be widened (要扩宽其元素的向量).

Returns

(Vector256<ulong> Lower, Vector256<ulong> Upper)

A pair of vectors that contain the widened lower and upper halves of source (包含 source 的下半部和上半部的一对扩宽向量).

See Also