# File lib/backports/1.9.2/stdlib/matrix.rb, line 232
  def Matrix.identity(n)
    scalar(n, 1)
  end