Vector<T>.Max Method

Definition

Namespace: Numerics.NET
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(Int32) Returns the value of the largest element in this vector.

Max

Returns the value of the largest element in this vector.
C#
public virtual T Max()

Return Value

T
The 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

InvalidOperationException

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.
C#
public T Max(
	out int index
)

Parameters

index  Int32
When this method returns, the index of the largest element.

Return Value

T
The 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

InvalidOperationException

The vector is empty, or the vector is missing-aware and all values are missing.

See Also