[SciPy-user] Easy way to make a block diagonal matrix?

Joseph Smidt josephsmidt@gmail....
Wed May 20 14:44:55 CDT 2009


     Is there an easy way to create a block diagonal matrix from
existing matrices?  For example, lets assume I have three 2x2 matrices
a, b and c.  Is there something like d = block_diag(a,b,c) which would
create a 6x6 block diagonal matrix from a, b and c?  If not, is there
a straight forward way to accomplish the same thing?

                                     Joseph Smidt

Joseph Smidt <josephsmidt@gmail.com>

Physics and Astronomy
4129 Frederick Reines Hall
Irvine, CA 92697-4575
Office: 949-824-3269

More information about the SciPy-user mailing list