# File lib/matrix.rb, line 1213
  def r
    v = 0
    for e in @elements
      v += e*e
    end
    return Math.sqrt(v)
  end