Vector<T>.Min Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0

Overload List

Min() Returns the value of the smallest element in this vector.
Min(Int32) Returns the value of the smallest element in this vector.

Min

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

Return Value

T
The value of the smallest 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.

Min(Int32)

Returns the value of the smallest element in this vector.
C#
public T Min(
	out int index
)

Parameters

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

Return Value

T
The value of the smallest 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