DiagonalMatrix<T>.DiagonalIndex Property

Gets the index of the nonzero diagonal of this DiagonalMatrix<T>.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public int DiagonalIndex { get; }

Property Value

Int32
The distance of the nonzero diagonal of the DiagonalMatrix<T> from the main diagonal.

Remarks

Diagonals below the main diagonal have a negative index. Diagonals above the main diagonal have a positive index. The main diagonal itself has index zero.

See Also