Registered Member
|
Hello, I m using the ComplexEigenSolver for computing the eigenvalues and eigenvectors of a non-symmetrical matrix.My code also contains a lot of matrix multiplcations and some matrix inversions.I m using dynamic memory for storing the matrices (using MatrxXcd) and I m working with a laptop that has 8GB of RAM.
When I increase the size of the matrices to 2000*2000=4000000 elements I get a std::bad_alloc exception. Is there any way to deal with that ? |
Moderator
|
That means you're running out of memory. try to limit the number of matrices that have to be allocated at the same time or track possible memory leaks in your application.
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]