Concatenating large matrices - out of memory
Afficher commentaires plus anciens
I have four 4096x4096 sparse matrices namely A, B, C, and D and they only have elements on the diagonal.
I tried to make a matrix X = [ A B; C D] which is 8192x8192 but I get an out of memory error.
Essentially, I need to multiply X with a 8192x1 vector Y.
Is there a more sophisticated way to do this?
Réponse acceptée
Plus de réponses (1)
Konrad Malkowski
le 12 Mar 2013
0 votes
Have you tried explicitly storing the matrix as sparse?
1 commentaire
John
le 12 Mar 2013
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!