[SciPy-User] need assistance

AHILAN KANAGASUNDARAM ahilan.kanagasundaram@student.qut.edu...
Sun Sep 12 20:09:24 CDT 2010

I'm working on python and scipy.  I need to create block diagonal matrix, When I tried to use below function,  it says that there is not block module

>>> a=numpy.ones([2,2])
>>> b=numpy.random.rand(3,3)
>>> import block
>>> c=block.block_diag(a,b)
>>> print c

How can I fix this problem. Is there any alternative way to create block diagonal matrix.

I look forward to hearing from you.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100913/b6155f2b/attachment-0001.html 

More information about the SciPy-User mailing list