Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > matrixライブラリ > Matrixクラス > symmetric?
symmetric? -> bool
行列が対称ならば true を返します。