identity(n) public

Creates an n by n identity matrix.

Matrix.identity(2)
  => 1 0
     0 1
Show source
Register or log in to add new notes.