Method: TwoDMatrix#build_zero_matrix

Defined in:
lib/csrmatrix.rb

#build_zero_matrix(rows, columns = rows) ⇒ Object



310
311
312
313
314
315
# File 'lib/csrmatrix.rb', line 310

def build_zero_matrix(rows, columns = rows)
  # FIXME: test code: replace with CSR zero gen
# generate a matrix with all values equaling zero for a given number of rows and columns
  self.build_from_array(Matrix.zero(rows, columns).to_a())
  return true
end