Registered Member
|
Hi. I have no idea if this can be done. The dense Matrices seem to support this.
Is is possible to build a large sparse matrix by defining sparse blocks separately? For instance I need to construct a matrix K = | C1 C2 | | C3 C4 | Where C1-C4 are all themselves sparse matrices. It would be convenient to be able to construct the C matrices independently as I need to use them to construct preconditioners for iterative solvers before building K. Thanks.
Last edited by kinetic on Fri May 01, 2009 3:31 pm, edited 1 time in total.
|
Moderator
|
hi,
indeed, currently this is not possible, but that's on the todo list. I can already say the API will be:
With K a SparseMatrix or DynamicSparseMatrix. On the other hand, for obvious performance reasons, the following will be supported only by the DynamicSparseMatrix:
(perhaps this already works for DynamicSparseMatrix) I'll update this thread when the comma initializer will be ready. |
Registered Member
|
Thanks! I was not sure if this was a reasonable feature to hope for. Once again this is a great library.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]