Boost logo

Ublas :

From: Michael Stevens (mail_at_[hidden])
Date: 2005-11-11 01:54:32


On Friday, 11. November 2005 02:29, Chen Jiusheng wrote:
> Hi Michael Stevens
>
> Thanks for your reply, could you please show me an alternative method to
> circumvent this annoying problem?I have no choice but to use a sparse
> matrix such as 'coordinate_matrix'.

Use a resize which does not 'preserve' that is.
        m.resize(4, 3,false);

Of course if you need to keep some elements you will need to store them
elsewhere first.
> These days uBlas is torturing me :)

I can imagine!

Michael

-- 
___________________________________
Michael Stevens Systems Engineering
34128 Kassel, Germany
Phone/Fax: +49 561 5218038
Navigation Systems, Estimation  and
                 Bayesian Filtering
    http://bayesclasses.sf.net
___________________________________