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