|
Boost Users : |
Subject: [Boost-users] ublas vector resize std::bad_alloc
From: Fabian Lim (fabian.lim_at_[hidden])
Date: 2008-12-06 03:49:10
Im having a memory management problem. I have 2 ublas vectors
Vector A = vector<V1 >
Vector B = vector<vector<V2 > > : first vector level size is 2^22
where the data types both V1=vector<int> and V2 are vector<vectors<int>> and
the size |V1| <= 2 and the
first level size of V2 <=2 and the second level size <= 10.
A grows as my program runs. B also grows but only the second level.
I run in windows and when i check the memory usage,
it seems to be around 90,000K when the exception throws. I dont really
have a good feel for these figures, so I compared to my firefox
browser, which seems to occupy approximately the same amount of
memory, hence i concluded that not alot of memory is used. My
computers have around 1/2 Gb RAM. I do not see the typical OS slowdown
which accompanies alot of paging.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net