|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2006-05-23 06:47:15
Am Dienstag, 23. Mai 2006 12:22 schrieb dvir schirman:
> here is the full header.
> cov wasn't declared at any place.
>
>
> class simple_env
> {
> public:
>
> simple_env();
> ~simple_env();
> ublas::vector<float> cov;
the header compiles fine with
gcc version 3.3.5 (Debian 1:3.3.5-13)
Did you mix declaration and instantiation? If you want that cov has size
3 by default you can either use the constructor or the create function
(but this is part of the implementation file):
simple_env() : cov(3) { ... more ... }
create()
{
cov.resize(3, false);
}
mfg
Gunter