From: dblack@... Date: 2006-09-11T03:29:14+09:00 Subject: Re: Matrix 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 -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org