Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 479 Bytes

File metadata and controls

23 lines (13 loc) · 479 Bytes

Home > @josh-brown/vector > SparseMatrix > trace

SparseMatrix.trace() method

Returns the trace of the matrix

Signature:

trace(): S;

Returns:

S

The trace

Remarks

The trace of a matrix is the sum of the entries along the main diagonal