[SciPy-user] Construct sparse matrix from sparse blocks

Neilen Marais nmarais@sun.ac...
Thu Feb 7 09:39:13 CST 2008


Hi,  

I have several sparse blocks defined separately. E.eg.

A_aa, A_ab, A_ba, A_bb, A_cc, I want to construct a new sparse matrix 
like this:

A = [A_aa A_ab 0   ]
    [A_ba A_bb 0   ]
    [0    0    A_cc]

Is there currently an easy way to do this, or will I have to roll some of 
my own? If the latter, any suggestions of what to look at?

Thanks
Neilen



More information about the SciPy-user mailing list