Boost logo

Boost :

From: jhrwalter (walter_at_[hidden])
Date: 2001-12-21 05:37:59


--- In boost_at_y..., Peter Schmitteckert (boost) <boost_at_s...> wrote:
> Salut,
>
> I would like to write some small programms using ublas/hermitean
> matrices. But I encountered the following problem:
>
> #include <complex>
>
> #include <boost/numeric/ublas/config.h>
> #include <boost/numeric/ublas/storage.h>
> #include <boost/numeric/ublas/vector.h>
> #include <boost/numeric/ublas/matrix.h>

#include <boost/numeric/ublas/triangular.h>

> #include <boost/numeric/ublas/symmetric.h>
> #include <boost/numeric/ublas/hermitean.h>
> #include <boost/numeric/ublas/io.h>
>
> typedef complex<double> F;
>
> typedef numerics::matrix<F, numerics::row_major<> > Matrix;
> typedef numerics::hermitean_matrix< double > HMatrix;
>
> //typedef numerics::hermitean_matrix< F, numerics::lower,
> // numerics::row_major<>, numerics::unbounded_array<F> > HMatrix;
>
>
> int main()
> {
> Matrix A; // o.k.
> HMatrix H; //Not o.k.
>
> }
>
>
> Compiling this code using gcc-2.95.4 (debian)
> I get
>
> peter_at_wawa:~$ g++ -I.. -DUSE_GCC u.C
> ../boost/numeric/ublas/hermitean.h: In instantiation of
>
`numerics::hermitean_matrix<double,numerics::lower,numerics::row_major
<numerics::forward,numerics::forward>,numerics::unbounded_array<double
>
> >':
> u.C:23: instantiated from here
> ../boost/numeric/ublas/hermitean.h:57: invalid use of undefined
type `struct
> numerics::lower'
> ../boost/numeric/ublas/config.h:302: forward declaration of `struct
> numerics::lower'
>
>
> The commented version didn't work either.
> Grepping the sources I couldn't find which include I'm missing.
>
> Any help ?
> Best wishes,
> Peter

HTH

Joerg


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk