Boost logo

Ublas :

From: Marc Duflot (marc.duflot_at_[hidden])
Date: 2005-06-23 10:04:42


Hello.

I see that there is some discussion about the initialization to zero of
vector elements and I understand that the default behaviour is to left
them uninitialized (even if the documentation claims that 'Elements are
zeroed by default' in the overview).

Is there a way to change this behaviour with a macro, a template
parameter or something else?

I simply want to have this:

   typedef boost::numeric::ublas::??? my_vector_type;
   my_vector_type my_vector(1);
   assert (my_vector[0]==0.0);

Thank you.
Marc.