Flowdock
trace() public

Returns the trace (sum of diagonal elements) of the matrix.

Matrix[[7,6], [3,9]].trace
  => 16
Show source
Register or log in to add new notes.