= private = protected
zero(row_count, column_count = row_count)
Creates a zero matrix.
Matrix.zero(2) => 0 0 0 0
# File lib/matrix.rb, line 157 def Matrix.zero(row_count, column_count = row_count) rows = Array.new(row_count){Array.new(column_count, 0)} new rows, column_count end