From: "Nicolas Desprès" Date: 2006-12-21T21:49:53+09:00 Subject: Re: Matrix class for ruby? On 12/21/06, seepee wrote: > Does anyone know of a functional Matrix math class for ruby that could > multiply, add and substract 3x2 or larger matrices. > > The matrix.rb that is in Ruby API cannot multiply anything larger than 2x2 > matrices, which makes it useless for 2D or 3D graphics (for instance). > Are you sure? $ irb irb(main):001:0> Matrix[[1,2,3],[1,2,3],[1,2,3]] * Matrix[[1,2,3],[1,2,3],[1,2,3]] => Matrix[[6, 12, 18], [6, 12, 18], [6, 12, 18]] irb(main):002:0> VERSION => 1.8.4 $ -- Nicolas Despr�s