Table of Contents

Method Max

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Max(Vector256<float>, Vector256<float>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

public static Vector256<float> Max(Vector256<float> left, Vector256<float> right)

Parameters

left Vector256<float>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<float>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<float>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also

Max(Vector256<double>, Vector256<double>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

public static Vector256<double> Max(Vector256<double> left, Vector256<double> right)

Parameters

left Vector256<double>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<double>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<double>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also

Max(Vector256<sbyte>, Vector256<sbyte>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

[CLSCompliant(false)]
public static Vector256<sbyte> Max(Vector256<sbyte> left, Vector256<sbyte> right)

Parameters

left Vector256<sbyte>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<sbyte>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<sbyte>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also

Max(Vector256<byte>, Vector256<byte>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

public static Vector256<byte> Max(Vector256<byte> left, Vector256<byte> right)

Parameters

left Vector256<byte>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<byte>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<byte>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also

Max(Vector256<short>, Vector256<short>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

public static Vector256<short> Max(Vector256<short> left, Vector256<short> right)

Parameters

left Vector256<short>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<short>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<short>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also

Max(Vector256<ushort>, Vector256<ushort>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

[CLSCompliant(false)]
public static Vector256<ushort> Max(Vector256<ushort> left, Vector256<ushort> right)

Parameters

left Vector256<ushort>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<ushort>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<ushort>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also

Max(Vector256<int>, Vector256<int>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

public static Vector256<int> Max(Vector256<int> left, Vector256<int> right)

Parameters

left Vector256<int>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<int>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<int>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also

Max(Vector256<uint>, Vector256<uint>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

[CLSCompliant(false)]
public static Vector256<uint> Max(Vector256<uint> left, Vector256<uint> right)

Parameters

left Vector256<uint>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<uint>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<uint>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also

Max(Vector256<long>, Vector256<long>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

public static Vector256<long> Max(Vector256<long> left, Vector256<long> right)

Parameters

left Vector256<long>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<long>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<long>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also

Max(Vector256<ulong>, Vector256<ulong>)

Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值). Mnemonic: rt[i] := max(left[i], right[i]).

[CLSCompliant(false)]
public static Vector256<ulong> Max(Vector256<ulong> left, Vector256<ulong> right)

Parameters

left Vector256<ulong>

The vector to compare with right (将会与right进行比较的向量).

right Vector256<ulong>

The vector to compare with left (将会与left进行比较的向量).

Returns

Vector256<ulong>

A vector whose elements are the maximum of the corresponding elements in left and right (一个向量,其元素是leftright的相应元素的最大值).

See Also