Method: Matrix#round

Defined in:
lib/matrix.rb

#round(ndigits = 0) ⇒ Object

Returns a matrix with entries rounded to the given precision (see Float#round)



1314
1315
1316
# File 'lib/matrix.rb', line 1314

def round(ndigits=0)
  map{|e| e.round(ndigits)}
end