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

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

On Wed, May 20, 2009 at 6:32 PM, Bruce Southey <bsouthey@gmail.com> wrote:
> Hi,
> What is the definition that you are using for a block diagonal matrix?
> ...
> But Matlab's blkdiag function does not and, thus, it may not result in
> a diagonal matrix:
> http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk
> /help/techdoc/ref/blkdiag.html

Typically I would define a block diagonal matrix as a square matrix as
the Wikipedia does.  However, it might be nice to side with Matlab
since there may be circumstances where one needs a more general block
diagonal matrix than a square one.

    Personally, if it is just as efficient algorithmically, I would
side with the more general definition as Matlab does.  Thanks again
for all of this.

                              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