Vector.Max Number Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
Overload List
| Max | Returns a vector whose elements are the maximum numbers of a vector and a scalar. |
| Max | Returns a vector whose elements are the maximum numbers of the components of two vectors. |
| Max | Returns a vector whose elements are the maximum numbers of a scalar and a vector. |
MaxNumber<T>(Vector<T>, T)
Returns a vector whose elements are the maximum numbers of a vector and a scalar.
public static Vector<T> MaxNumber<T>(
this Vector<T> vector,
T value
)
Parameters
Type Parameters
- T
Return Value
Vector<T>A vector whose elements are the maximum numbers of the corresponding element of vector and value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
For vector elements, missingness is determined by IsMissing(Int32). For value, missingness is determined by IsMissing(T). When both operands are present, Max(T, T) is applied.
MaxNumber<T>(Vector<T>, Vector<T>)
Returns a vector whose elements are the maximum numbers of the components of two vectors.
public static Vector<T> MaxNumber<T>(
this Vector<T> left,
Vector<T> right
)
Parameters
Type Parameters
- T
Return Value
Vector<T>A vector whose elements are the maximum numbers of the corresponding elements of left and right.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
Each vector classifies its own elements through IsMissing(Int32). When both operands are present, Max(T, T) is applied.
MaxNumber<T>(T, Vector<T>)
Returns a vector whose elements are the maximum numbers of a scalar and a vector.
public static Vector<T> MaxNumber<T>(
T value,
Vector<T> vector
)
Parameters
Type Parameters
- T
Return Value
Vector<T>A vector whose elements are the maximum numbers of value and the corresponding element of vector.
Remarks
For vector elements, missingness is determined by IsMissing(Int32). For value, missingness is determined by IsMissing(T). When both operands are present, Max(T, T) is applied.