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