Concatenating large matrices - out of memory
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (1)
Konrad Malkowski
el 12 de Mzo. de 2013
0 votos
Have you tried explicitly storing the matrix as sparse?
1 comentario
John
el 12 de Mzo. de 2013
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!