From: "M. Edward (Ed) Borasky" Date: 2006-09-11T08:55:52+09:00 Subject: Re: Matrix dblack@wobblini.net wrote: > Hi -- > > On Mon, 11 Sep 2006, v.srikrishnan@gmail.com wrote: > >> Hi all, >> a) Is there a way to create a non-square matrix in ruby? >> b) How does one set any arbitrary element of an array? >> >> I searched for these bu there was a post about 3 years back, if >> anything has been done it would be better to use that rather than >> something i should write! > > Check out the Matrix class -- look for matrix.rb in the Ruby > distribution. > > > David > You can only set an arbitrary element of a Matrix when it is created. Once created, you can't change any of the entries.