Method Max
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
Max(Vector128<float>, Vector128<float>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
public static Vector128<float> Max(Vector128<float> left, Vector128<float> right)
Parameters
left
Vector128<float>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<float>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<float>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also
Max(Vector128<double>, Vector128<double>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
public static Vector128<double> Max(Vector128<double> left, Vector128<double> right)
Parameters
left
Vector128<double>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<double>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<double>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also
Max(Vector128<sbyte>, Vector128<sbyte>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
[CLSCompliant(false)]
public static Vector128<sbyte> Max(Vector128<sbyte> left, Vector128<sbyte> right)
Parameters
left
Vector128<sbyte>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<sbyte>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<sbyte>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also
Max(Vector128<byte>, Vector128<byte>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
public static Vector128<byte> Max(Vector128<byte> left, Vector128<byte> right)
Parameters
left
Vector128<byte>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<byte>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<byte>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also
Max(Vector128<short>, Vector128<short>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
public static Vector128<short> Max(Vector128<short> left, Vector128<short> right)
Parameters
left
Vector128<short>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<short>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<short>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also
Max(Vector128<ushort>, Vector128<ushort>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
[CLSCompliant(false)]
public static Vector128<ushort> Max(Vector128<ushort> left, Vector128<ushort> right)
Parameters
left
Vector128<ushort>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<ushort>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<ushort>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also
Max(Vector128<int>, Vector128<int>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
public static Vector128<int> Max(Vector128<int> left, Vector128<int> right)
Parameters
left
Vector128<int>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<int>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<int>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also
Max(Vector128<uint>, Vector128<uint>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
[CLSCompliant(false)]
public static Vector128<uint> Max(Vector128<uint> left, Vector128<uint> right)
Parameters
left
Vector128<uint>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<uint>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<uint>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also
Max(Vector128<long>, Vector128<long>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
public static Vector128<long> Max(Vector128<long> left, Vector128<long> right)
Parameters
left
Vector128<long>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<long>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<long>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also
Max(Vector128<ulong>, Vector128<ulong>)
Computes the maximum of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大值).
Mnemonic: rt[i] := max(left[i], right[i])
.
[CLSCompliant(false)]
public static Vector128<ulong> Max(Vector128<ulong> left, Vector128<ulong> right)
Parameters
left
Vector128<ulong>The vector to compare with
right
(将会与right
进行比较的向量).right
Vector128<ulong>The vector to compare with
left
(将会与left
进行比较的向量).
Returns
- Vector128<ulong>
A vector whose elements are the maximum of the corresponding elements in
left
andright
(一个向量,其元素是left
和right
的相应元素的最大值).
- See Also