SparseVector<T>.MaxIndex Method

Returns the index of the largest component in this sparse vector.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public override int MaxIndex()

Return Value

Int32
The index of the largest component in this SparseVector<T>.

Remarks

If more than one component has the largest value, the index of the first occurrence is returned.

See Also