Operators and Keywords
Function List:
C++ API
Compute the trace of A, the sum of the elements along the main diagonal.
The implementation is straightforward: sum (diag (A)).
sum (diag (A))
See also: eig.
Package: octave