[SciPy-user] Easy way to make a block diagonal matrix?
Wed May 20 17:41:18 CDT 2009
Since there is a matlab function called blkdiag that does the same, maybe
this one could be included in numpy/scipy.
2009/5/20 Stéfan van der Walt <firstname.lastname@example.org>
> Hi Joseph
> 2009/5/20 Joseph Smidt <email@example.com>:
> > 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?
> The attached function should do the trick.
> SciPy-user mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user