Eig(A'*A) - out of memory. Any shortcuts?

  • Thread starter Thread starter mikeph
  • Start date Start date
  • Tags Tags
    Memory
AI Thread Summary
The discussion focuses on optimizing the calculation of eigenvalues for a large and sparse matrix A while minimizing RAM usage. Key suggestions include using a sparse matrix format in MATLAB, calculating A'*A and clearing A to reduce memory load, and running MATLAB scripts with the "-nojvm" option on Unix systems to save resources. Additionally, increasing swap size and ensuring the use of a 64-bit operating system and MATLAB version are recommended for better performance.
mikeph
Messages
1,229
Reaction score
18
A is pretty large (and sparse). I'd really like to be able to calculate this, using less RAM.
 
Physics news on Phys.org
I wouldn't call myself an expert on eigenvalue algorithms, but I had some ideas.

First, you've been using a MatLab http://www.mathworks.com/help/techdoc/ref/sparse.html" matrix for A, right?

Second, you could try setting a variable to A'*A, then clearing A, and then having a call to eig on that variable.

If you're on unix and you don't need the development environment, an option is to run a MatLab script with the "-nojvm" command line option.

Other than that, increase the swap size. If that's not enough, get the following if you aren't already using them for this task:

a 64 bit OS (and computer if needed)

64-bit MatLab
 
Last edited by a moderator:
Thanks for the suggestions
 

Similar threads

Replies
2
Views
3K
Replies
4
Views
11K
Replies
6
Views
2K
Replies
3
Views
2K
Replies
2
Views
2K
Replies
46
Views
6K
Back
Top