A numerically more stable feature than direct inversion is to use the Cholesky decomposition with the package, which you will find here :
require 'Cholesky.rb'
require 'pp'
l = m.cholesky
li = l.inverse
lit = li.transpose
pp lit*li*m
Better than inverting l, use the method described in the wikpedia article above.
, , .
Not Matt