Method YMinNumber
- Namespace
- Zyl.VectorTraits.Impl.AVector
- Assembly
- VectorTraits.dll
YMinNumber(Vector<float>, Vector<float>)
Computes the minimum number of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最小数值). The minNumber method matches the IEEE 754:2019 minimumNumber 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 (minNumber方法与 IEEE 754:2019 minimumNumber 函数匹配。 这要求 NaN 输入不传播回调用方,且 -0.0 被视为小于 +0.0).
Mnemonic: rt[i] := minNumber(left[i], right[i]).
public override Vector<float> YMinNumber(Vector<float> left, Vector<float> right)Parameters
- leftVector<float>
- The vector to compare with - right(将会与- right进行比较的向量).
- rightVector<float>
- The vector to compare with - left(将会与- left进行比较的向量).
Returns
- Vector<float>
- A vector whose elements are the minimum number of the corresponding elements in - leftand- right(一个向量,其元素是- left和- right的相应元素的最小数值).
- See Also
YMinNumber(Vector<double>, Vector<double>)
Computes the minimum number of two vectors on a per-element basis (在每个元素的基础上计算两个向量的最小数值). The minNumber method matches the IEEE 754:2019 minimumNumber 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 (minNumber方法与 IEEE 754:2019 minimumNumber 函数匹配。 这要求 NaN 输入不传播回调用方,且 -0.0 被视为小于 +0.0).
Mnemonic: rt[i] := minNumber(left[i], right[i]).
public override Vector<double> YMinNumber(Vector<double> left, Vector<double> right)Parameters
- leftVector<double>
- The vector to compare with - right(将会与- right进行比较的向量).
- rightVector<double>
- The vector to compare with - left(将会与- left进行比较的向量).
Returns
- Vector<double>
- A vector whose elements are the minimum number of the corresponding elements in - leftand- right(一个向量,其元素是- left和- right的相应元素的最小数值).
- See Also