Concatenating large matrices - out of memory
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (1)
Konrad Malkowski
il 12 Mar 2013
0 voti
Have you tried explicitly storing the matrix as sparse?
1 Commento
John
il 12 Mar 2013
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!