Vector.MaxNumber<T>(Vector<T>, Vector<T>) 方法

定义

将两个向量(基于每个元素)与计算结果进行比较,如果元素 NaN是,则返回另一个值。

public:
generic <typename T>
 static System::Numerics::Vector<T> MaxNumber(System::Numerics::Vector<T> left, System::Numerics::Vector<T> right);
public static System.Numerics.Vector<T> MaxNumber<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);
static member MaxNumber : System.Numerics.Vector<'T> * System.Numerics.Vector<'T> -> System.Numerics.Vector<'T>
Public Function MaxNumber(Of T) (left As Vector(Of T), right As Vector(Of T)) As Vector(Of T)

类型参数

T

向量中的元素的类型。

参数

left
Vector<T>

要与 right. 比较的向量。

right
Vector<T>

要与 left. 比较的向量。

返回

如果相应元素大于,则为一个矢量,如果元素大于,则为 ;否则为 < a1/>。

适用于