Re: Assignment to submatrices
- To: mathgroup@smc.vnet.net
- Subject: [mg11253] Re: Assignment to submatrices
- From: Paul Abbott <paul@physics.uwa.edu.au>
- Date: Wed, 4 Mar 1998 01:39:14 -0500
- Organization: University of Western Australia
- References: <6dg8no$2up@smc.vnet.net>
David E. Cox wrote:
> Is there any way to assign directly to submatrices, without building a
> higher order tensor? ie if A and B are 2x2's how do I create the 4x4
> matrix [0 I2x2; A B].
Load
<<LinearAlgebra`MatrixManipulation`
Then you can enter
BlockMatrix[{{ZeroMatrix[2],IdentityMatrix[2]},{A,B}}]
Cheers,
Paul
____________________________________________________________________
Paul Abbott Phone: +61-8-9380-2734
Department of Physics Fax: +61-8-9380-1014
The University of Western Australia Nedlands WA 6907
mailto:paul@physics.uwa.edu.au AUSTRALIA
http://www.pd.uwa.edu.au/~paul
God IS a weakly left-handed dice player
____________________________________________________________________