Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Matrix Class > Methods


Extreme Optimization Mathematics Library for .NET

Matrix.Trace Method 

Gets the sum of the diagonal elements of this Matrix.

[Visual Basic]
Public Function Trace() As Double
[C#]
public double Trace();

Remarks

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

See Also

Matrix Class | Extreme.Mathematics.LinearAlgebra Namespace