Gets the sum of the diagonal elements of this Matrix.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Function Trace As Double
C#
public double Trace ()
C++
public:
double Trace ()

Return Value

The sum of the diagonal elements of this Matrix.

Remarks

The sum of the diagonal elements of a matrix is called the trace of the matrix.