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