Boost logo

Ublas :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2005-01-19 10:30:13


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.