Vector<T>.MinIndex Method

Returns the index of the smallest element in this vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public virtual int MinIndex()

Return Value

Int32
The index of the smallest element in this Vector<T>.

Remarks

If more than one element has the smallest value, the index of the first occurrence is returned. If the length of the vector is zero, or if all elements are NaN, then -1 is returned.

See Also