Table of Contents

Method Widen

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

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

Parameters

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(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]).

public static (Vector256<double> Lower, Vector256<double> Upper) Widen(Vector256<float> source)

Parameters

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(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(Vector256<sbyte> source)

Parameters

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(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(Vector256<byte> source)

Parameters

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(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]).

public static (Vector256<int> Lower, Vector256<int> Upper) Widen(Vector256<short> source)

Parameters

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(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(Vector256<ushort> source)

Parameters

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(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]).

public static (Vector256<long> Lower, Vector256<long> Upper) Widen(Vector256<int> source)

Parameters

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(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(Vector256<uint> source)

Parameters

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

Widen(Vector256<float>, out Vector256<double>, out Vector256<double>)

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

public static void Widen(Vector256<float> source, out Vector256<double> lower, out Vector256<double> upper)

Parameters

source Vector256<float>

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

lower Vector256<double>

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

upper Vector256<double>

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

See Also

Widen(Vector256<sbyte>, out Vector256<short>, out Vector256<short>)

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

[CLSCompliant(false)]
public static void Widen(Vector256<sbyte> source, out Vector256<short> lower, out Vector256<short> upper)

Parameters

source Vector256<sbyte>

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

lower Vector256<short>

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

upper Vector256<short>

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

See Also

Widen(Vector256<byte>, out Vector256<ushort>, out Vector256<ushort>)

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

[CLSCompliant(false)]
public static void Widen(Vector256<byte> source, out Vector256<ushort> lower, out Vector256<ushort> upper)

Parameters

source Vector256<byte>

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

lower Vector256<ushort>

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

upper Vector256<ushort>

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

See Also

Widen(Vector256<short>, out Vector256<int>, out Vector256<int>)

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

public static void Widen(Vector256<short> source, out Vector256<int> lower, out Vector256<int> upper)

Parameters

source Vector256<short>

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

lower Vector256<int>

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

upper Vector256<int>

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

See Also

Widen(Vector256<ushort>, out Vector256<uint>, out Vector256<uint>)

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

[CLSCompliant(false)]
public static void Widen(Vector256<ushort> source, out Vector256<uint> lower, out Vector256<uint> upper)

Parameters

source Vector256<ushort>

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

lower Vector256<uint>

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

upper Vector256<uint>

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

See Also

Widen(Vector256<int>, out Vector256<long>, out Vector256<long>)

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

public static void Widen(Vector256<int> source, out Vector256<long> lower, out Vector256<long> upper)

Parameters

source Vector256<int>

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

lower Vector256<long>

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

upper Vector256<long>

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

See Also

Widen(Vector256<uint>, out Vector256<ulong>, out Vector256<ulong>)

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

[CLSCompliant(false)]
public static void Widen(Vector256<uint> source, out Vector256<ulong> lower, out Vector256<ulong> upper)

Parameters

source Vector256<uint>

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

lower Vector256<ulong>

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

upper Vector256<ulong>

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

See Also