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)



1312
1313
1314
# File 'lib/matrix.rb', line 1312

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