[SciPy-User] need assistance

AHILAN KANAGASUNDARAM ahilan.kanagasundaram at student.qut.edu.au
Sun Sep 12 21:09:24 EDT 2010


Hi,
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.


Thanks


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


More information about the SciPy-User mailing list