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