Ruby 2.6.0 リファレンスマニュアル > ライブラリ一覧 > matrixライブラリ > Vectorクラス > zero?
zero? -> bool
すべての要素がゼロであれば true を返します。