Boost logo

Ublas :

From: Eddie.Vedder_at_[hidden]
Date: 2007-01-30 11:47:51


Hello readers of this list,

I have a problem concering the memory usage of ublas.
Within a class I have some members of type ublas::matrix<double> and ublas::vector<double>. These matrices are sometimes very large. After the computation I try to deallocate the memory calling clear(), but a look at the Task-Manager does not show less memory used by the application after that call.

How do I deallocate the memory correctly?

Here is some example code:

ublas::matrix<double> matN;
matN.resize(100,100);
... fill matrix
... compute something
matN.clear();

Thanks in advance,
Ed

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer