Click or drag to resize
AnySquareMatrixTrace Method
Computes the trace of the square matrix.

Namespace:  Meta.Numerics.Matrices
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public virtual double Trace()

Return Value

Type: Double
tr(M)
Remarks

The trace of a square matrix is the sum of its diagonal elements.

See Also