Boost logo

Ublas :

From: Ralf Denzer (denzer_at_[hidden])
Date: 2005-01-18 07:48:29


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)

Any help is appreciated.

Ralf

Email: denzer_at_[hidden]