Re: Joining matrices
- To: mathgroup at smc.vnet.net
- Subject: [mg5872] Re: [mg5738] Joining matrices
- From: gielesen at imwsrv.imw.tu-clausthal.de (Harald Gielessen)
- Date: Sun, 2 Feb 1997 01:31:16 -0500
- Organization: IMW TU Clausthal
- Sender: owner-wri-mathgroup at wolfram.com
In article <5cg600$t4r at smc.vnet.net>, Jean-Francois Alcover <70763.411 at compuserve.com> wrote: ->i have to join 2 or more matrices line by line ->for example : joinmat[{{{1,2},{3,4}},{{10,20},{30,40}}}] -> --> {{1,2,10,20},{3,4,30,40}} -> ->i have tried Transpose [Flatten[Transpose /@ ListOfMatrices,1]] ->but it seems rather slow -> ->can anyone help me with a faster solution ? Try the package "MatrixManipulation". It prvides this and other functions you might find useful though I can't tell you whether it is faster. It should be at MathSource. Harry -- ------------------------------------------------------------ Harald Gielessen, Institut fuer Maschinenwesen, TU Clausthal Robert-Koch-Str. 32, D-38678 Clausthal-Zellerfeld, Germany Phone: ++49 5323 72 2262, Fax: ++49 5323 72 3501 gielesen at imw.tu-clausthal.de http://www.imw.tu-clausthal.de/ ------------------------------------------------------------ "A man with one watch knows what time it is, a man with two watches is never sure..." - Albert Einstein