Boost logo

Ublas :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2005-01-21 14:10:53


Ralf Denzer wrote:
> Hi Michael,
>
>> Does that fix you problem?
>
>
> Unfortunately, no.
>
> Here is my test case:
>
> #include <boost/numeric/ublas/vector.hpp>
> #include <boost/numeric/ublas/matrix.hpp>
>
> namespace ublas = boost::numeric::ublas;
>
> int main()
> {
> // a vector of matrices
> ublas::vector<ublas::matrix<double> > vofm;
>
> // allocate a vector of 10 matrices
> vofm.resize(10);

patched. Actually the resize zero-initialised the new elements. This
does not work of course for value_type's that have no constructor that
takes an int.