Navigation

Operators and Keywords

Function List:

C++ API

: trace (A)

Compute the trace of A, the sum of the elements along the main diagonal.

The implementation is straightforward: sum (diag (A)).

See also: eig.

Package: octave