Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 455 Bytes

File metadata and controls

23 lines (13 loc) · 455 Bytes

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

Matrix.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