Vector<T>.Max 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 the value of the largest element in this vector. |
| Max( | Returns the value of the largest element in this vector. |
Max
Returns the value of the largest element in this
vector.
Remarks
Missing-aware vectors skip missing values. If no non-missing values remain, this method throws InvalidOperationException.
Exceptions
| Invalid | The vector is empty, or the vector is missing-aware and all values are missing. |
Max(Int32)
Returns the value of the largest element in this
vector.
public T Max(
out int index
)Parameters
- index Int32
- When this method returns, the index of the largest element.
Return Value
TThe value of the largest element in this Vector<T>.
Remarks
Missing-aware vectors skip missing values. If no non-missing values remain, this method throws InvalidOperationException.
Exceptions
| Invalid | The vector is empty, or the vector is missing-aware and all values are missing. |