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