Boost logo

Ublas :

From: Michael Stevens (m-stevens_at_[hidden])
Date: 2005-01-19 15:43:58


On Wednesday 19 January 2005 16:30, Toon Knapen wrote:
> Ralf Denzer wrote:
> > Hi,
> >
> > the following code snippet should
> > define a vector of matrices and
> > then allocate a vector element.
> >
> > // a vector of matrices
> > ublas::vector<ublas::matrix<double> > vofm;
> > // allocate a vector of 10 matrices
> > vofm.resize(10);
> > // allocate the 1st matrix as 3x3
> > vofm(0).resize(3,3);
> >
> > With the ublas version from the boost CVS four
> > days ago this code snippet gives compiler
> > errors at the two resize() statements.
> > At least with a ublas version from 3 or 4
> > month ago this works fine. I use g++ 3.3.5 (Debian)
>
> The problem was that the matrix.hpp include file does not include
> matrix_expression and therefor matrix_expression was unknown. This is
> patched in the CVS.

Toon,

I made a minor fix to your commit. For some reason it had a '//' in. I also
moved the #include matrix_expression.hpp to after the #include vector.hpp to
be consistent with other files.

Ralf,

Does that fix you problem?

Michael