How to calculate memory required to do mldivide?
Mostra commenti meno recenti
Hi, I am using mldivide to solve systems of linear equations (finding x in Ax = b). In some cases I run out of memory if solving for too many outputs, is there a way to estimate the memory requirement to do mldivide in order to not attempt it in case there's not enough memory available?
A is square symmetric positive definite sparse matrix of a size currently ranging from 10,000^2 to 50,000^2 but could possibly increase in size in the future.
b is also a sparse of a size length(A) x nColumns where nColumns can range from 1 to 200;
I have tried using
profile -memory on;
but it didn't show any memory usage for the mldivide.
I can find the amount of memory available which is 23.2GB in my case.
mem = memory;
mem.MaxPossibleArrayBytes / (1024^3)
ans =
23.2091
But I can't figure out a way to relate matrix size to memory required.
Thanks,
Titas
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Sparse 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!