So lets see if I got it right.
I declare the vector at the header without his size (3 in this case).
And at the constructor or create method I initilize the vector and then I set his size?
how do I set the size of the vector?
 
Thanks, again.
Dvir

 
On 5/23/06, Gunter Winkler <guwi17@gmx.de> wrote:
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
_______________________________________________
ublas mailing list
ublas@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/ublas