Boost logo

Ublas :

From: Eddie Vedder (Eddie.Vedder_at_[hidden])
Date: 2005-07-13 12:35:11


Dear list,

I try to copy some submatrices into one larger matrix (a so called block
matrix).
In Matlab the code would look like:

N_TOP = [N_TOPLEFT;N_BOTTOMLEFT];
N_BOTTOM = [N_TOPRIGHT;N_BOTTOMRIGHT];
H_TOTAL = [N_TOP N_BOTTOM];

... where, e.g., TOPLEFT means the submatrix in the upper left part of the
target block matrix H_TOTAL.

How can I do this with uBlas? I only found the function "project", which
extracts a submatrix from the larger matrix, but not the vice versa method.

Can someone help?
Thanks in advance,
Ed

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl