Re: Dealing with submatrices
- To: mathgroup at smc.vnet.net
- Subject: [mg18134] Re: Dealing with submatrices
- From: Guilherme Roschke <gr at network3.entropy.upenn.edu>
- Date: Fri, 18 Jun 1999 00:51:40 -0400
- Organization: University of Pennsylvania
- References: <7ka5m3$im3@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Chris Hall wrote: > > I want to construct a 9x9 matrix using 9 existing 3x3 matrices: > M = { {m11, m12, m13}, {m21, m22, m23}, {m31, m32, m33}} > > The problem is that this creates a too-deep nested list and I can't > figure out how > to make it a 9x9. Flatten doesn't appear to be the right tool. Try the BlockMatrix[...] command in the LinearAlgebra`MatrixManipulation` package. Its one of the standard add ons. Basically: <<LinearAlgebra`MatrixManipulation` M=BlockMatrix[{{m11,m12,m13},{m21,m22,m23},{m31,m32,m33}}] //MatrixForm where mij are 3X3 matrices. ************************************************* Guilherme Roschke * Programmer * Dept. of Anesthesia * University of Pennsylvania Medical School * gr at network3.entropy.upenn.edu * *************************************************