Table of Contents

Method Widen

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Widen<T, TOut>(Vector512<T>, out Vector512<TOut>, out Vector512<TOut>)

Widens a Vector512<T> into two Vector512<T> instances - Generic version (将一个 Vector512<T> 扩宽为两个 Vector512<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>(Vector512<T> source, out Vector512<TOut> lower, out Vector512<TOut> upper) where T : struct where TOut : struct

Parameters

source Vector512<T>

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

lower Vector512<TOut>

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

upper Vector512<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(Vector512<float>)

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

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

Parameters

source Vector512<float>

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

Returns

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

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

See Also

Widen(Vector512<sbyte>)

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

[CLSCompliant(false)]
public static (Vector512<short> Lower, Vector512<short> Upper) Widen(Vector512<sbyte> source)

Parameters

source Vector512<sbyte>

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

Returns

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

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

See Also

Widen(Vector512<byte>)

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

[CLSCompliant(false)]
public static (Vector512<ushort> Lower, Vector512<ushort> Upper) Widen(Vector512<byte> source)

Parameters

source Vector512<byte>

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

Returns

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

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

See Also

Widen(Vector512<short>)

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

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

Parameters

source Vector512<short>

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

Returns

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

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

See Also

Widen(Vector512<ushort>)

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

[CLSCompliant(false)]
public static (Vector512<uint> Lower, Vector512<uint> Upper) Widen(Vector512<ushort> source)

Parameters

source Vector512<ushort>

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

Returns

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

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

See Also

Widen(Vector512<int>)

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

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

Parameters

source Vector512<int>

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

Returns

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

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

See Also

Widen(Vector512<uint>)

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

[CLSCompliant(false)]
public static (Vector512<ulong> Lower, Vector512<ulong> Upper) Widen(Vector512<uint> source)

Parameters

source Vector512<uint>

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

Returns

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

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

See Also

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

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

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

Parameters

source Vector512<float>

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

lower Vector512<double>

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

upper Vector512<double>

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

See Also

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

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

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

Parameters

source Vector512<sbyte>

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

lower Vector512<short>

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

upper Vector512<short>

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

See Also

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

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

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

Parameters

source Vector512<byte>

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

lower Vector512<ushort>

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

upper Vector512<ushort>

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

See Also

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

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

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

Parameters

source Vector512<short>

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

lower Vector512<int>

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

upper Vector512<int>

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

See Also

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

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

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

Parameters

source Vector512<ushort>

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

lower Vector512<uint>

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

upper Vector512<uint>

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

See Also

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

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

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

Parameters

source Vector512<int>

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

lower Vector512<long>

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

upper Vector512<long>

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

See Also

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

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

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

Parameters

source Vector512<uint>

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

lower Vector512<ulong>

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

upper Vector512<ulong>

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

See Also