Flowdock
diagonal(*values) public

Creates a matrix where the diagonal elements are composed of values.

Matrix.diagonal(9, 5, -3)
  =>  9  0  0
      0  5  0
      0  0 -3
Show source
Register or log in to add new notes.