Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2006-05-24 02:35:23

On Tuesday 23 May 2006 16:56, dvir schirman wrote:
> 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?

You can set the size at the time of construction:
> > simple_env() : cov(3) { ... more ... }

or you can resize the vector at any later time:
> > cov.resize(3, false);