TNumberTrace Method

Computes the trace of a square matrix.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
C#
public TNumber Trace()

Return Value

TNumber
Sum of elements on the main diagonal of the matrix.

Exceptions

GeneralExceptionThrown unless obj is a square matrix.

See Also