TMatrix.Trace 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 TComplex Trace()

Return Value

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

Exceptions

GeneralExceptionThrown unless this matrix is a square matrix.

See Also