Method: Matrix#clone

Defined in:
lib/matrix.rb

#cloneObject

Returns a clone of the matrix, so that the contents of each do not reference identical objects.



424
425
426
# File 'lib/matrix.rb', line 424

def clone
  Matrix.rows(@rows)
end