From: Matthew Moss Date: 2006-03-23T08:28:26+09:00 Subject: Re: questions/suggestions from a Ruby newbie Ooops, nevermind. I didn't actually test []=. Apologies. On 3/22/06, Matthew Moss wrote: > > Unfortunatly the Matrix class seems to be very lacking so far. In > > particular there is no (or I could not find) any assignment such as []= > > and similar problems. I know I can write this but I would imagine > > something this basic should be part of the class already. Is there any > > place one can contribute with the code and have it discussed for review > > and inclusion in the future... or just a place to propose future > > improvements? > > irb: > > > m = Matrix[[1, 2, 3], [4, 5, 6], [7, 8, 9]] > => Matrix[[1, 2, 3], [4, 5, 6], [7, 8, 9]] > > > m[0, 0] > => 1 > > > m[2, 1] > => 8 > > > m * m > => Matrix[[30, 36, 42], [66, 81, 96], [102, 126, 150]] > > > m.determinant > => 0 > > > Matrix[[1,2], [3,4]].determinant > => -2 >