# File lib/backports/1.9.2/stdlib/matrix.rb, line 721 def symmetric? Matrix.Raise ErrDimensionMismatch unless square? each_with_index(:strict_upper) do |e, row, col| return false if e != rows[col][row] end true end