From: David Alan Black Date: 2002-08-01T01:30:32+09:00 Subject: Re: matrix challange Hi -- On Thu, 1 Aug 2002, Daniel Bretoi wrote: > > Hi all, > > I'd like to see the various solutions for coming up with code to > transpose a matrix. ie. make > > a = [[1,2],[1,3],[2,4]] > > look like > > aT = [[1,1,2],[2,3,4]] require 'matrix' a = Matrix[[1,2],[1,3],[2,4]] aT = a.t :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav