Boost logo

Ublas :

From: Eddie Vedder (Eddie.Vedder_at_[hidden])
Date: 2007-01-30 12:37:29


Hello again,

> You should use resize(0,0) or
> assign_temporary(matrix<double>(0,0));
>
> (The latter works with all matrices. The resize() method may decide not
> to free the memory ...)

I tried the latter one (assign_temporary(...)), but the memory usage does not change. Maybe your comment ...

> Another problem is, that the memory management of your C-Library may not
> free the memory but keep it for later use ...

... may be the point. What can I do against this behaviour? Do I have to allocate the matrices with new?

new ublas::matrix<double> matN;

Ed

-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail