Method YMaxNumber
- Namespace
- Zyl.VectorTraits.Impl.AVector256
- Assembly
- VectorTraits.dll
YMaxNumber(Vector256<float>, Vector256<float>)
Computes the maximum number of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大数值). The maxNumber method matches the IEEE 754:2019 maximumNumber function. This requires NaN inputs to not be propagated back to the caller and for -0.0 to be treated as less than +0.0 (maxNumber方法与 IEEE 754:2019 maximumNumber 函数匹配。 这要求 NaN 输入不传播回调用方,且 -0.0 被视为小于 +0.0).
Mnemonic: rt[i] := maxNumber(left[i], right[i]).
public virtual Vector256<float> YMaxNumber(Vector256<float> left, Vector256<float> right)
Parameters
leftVector256<float>The vector to compare with
right(将会与right进行比较的向量).rightVector256<float>The vector to compare with
left(将会与left进行比较的向量).
Returns
- Vector256<float>
A vector whose elements are the maximum number of the corresponding elements in
leftandright(一个向量,其元素是left和right的相应元素的最大数值).
- See Also
YMaxNumber(Vector256<double>, Vector256<double>)
Computes the maximum number of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最大数值). The maxNumber method matches the IEEE 754:2019 maximumNumber function. This requires NaN inputs to not be propagated back to the caller and for -0.0 to be treated as less than +0.0 (maxNumber方法与 IEEE 754:2019 maximumNumber 函数匹配。 这要求 NaN 输入不传播回调用方,且 -0.0 被视为小于 +0.0).
Mnemonic: rt[i] := maxNumber(left[i], right[i]).
public virtual Vector256<double> YMaxNumber(Vector256<double> left, Vector256<double> right)
Parameters
leftVector256<double>The vector to compare with
right(将会与right进行比较的向量).rightVector256<double>The vector to compare with
left(将会与left进行比较的向量).
Returns
- Vector256<double>
A vector whose elements are the maximum number of the corresponding elements in
leftandright(一个向量,其元素是left和right的相应元素的最大数值).
- See Also