AnySquareMatrixTrace Method

Computes the trace of the square matrix.

Definition

Namespace: Meta.Numerics.Matrices
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public virtual double Trace()

Return Value

Double
tr(M)

Remarks

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

See Also