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