Vector128.MaxNumber<T>(Vector128<T>, Vector128<T>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将两个向量(基于每个元素)与计算结果进行比较,如果元素 NaN是,则返回另一个值。
public:
generic <typename T>
static System::Runtime::Intrinsics::Vector128<T> MaxNumber(System::Runtime::Intrinsics::Vector128<T> left, System::Runtime::Intrinsics::Vector128<T> right);
public static System.Runtime.Intrinsics.Vector128<T> MaxNumber<T>(System.Runtime.Intrinsics.Vector128<T> left, System.Runtime.Intrinsics.Vector128<T> right);
static member MaxNumber : System.Runtime.Intrinsics.Vector128<'T> * System.Runtime.Intrinsics.Vector128<'T> -> System.Runtime.Intrinsics.Vector128<'T>
Public Function MaxNumber(Of T) (left As Vector128(Of T), right As Vector128(Of T)) As Vector128(Of T)
类型参数
- T
向量中的元素的类型。
参数
- left
- Vector128<T>
要与 right. 比较的向量。
- right
- Vector128<T>
要与 left. 比较的向量。
返回
如果相应元素大于,则为一个矢量,如果元素大于
例外
不支持向量 (T) 中的元素的类型。
注解
对于 IFloatingPoint<TSelf> 此方法,与 IEEE 754:2019 maximumNumber 函数匹配。 这要求不将 NaN 输入传播回调用方,并且 -0.0 要被视为小于 +0.0。