Matrix<T>.Trace Method

Gets the sum of the diagonal elements of this matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public virtual T Trace()

Return Value

T
The sum of the diagonal elements of this Matrix<T>.

Remarks

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

See Also