From: Dave Burt Date: 2006-08-07T17:45:12+09:00 Subject: Re: Resubmitting legacy RCR 161 M. Edward (Ed) Borasky wrote: > I guess I need to define my own "Matrix" class then. Making a copy of a > 200x200 matrix to change one element, or in my case the whole upper > triangle, is not going to work. I ended up doing "a = m.to_a", changing > the upper triangle in "a", and then doing "m = Matrix.rows(a)". Until I > looked at the code, I thought Matrix was either inheriting from or > mixing in Array. It's immutable so you can treat it like Numeric objects. Check out narray on the RAA, it might be what you're looking for. Apparently it's fast, too. http://raa.ruby-lang.org/project/narray/ Cheers, Dave