Boost logo

Ublas :

From: Hugo Duncan (hugo_duncan_at_[hidden])
Date: 2007-03-11 23:05:57


For either of these:
   ublas::vector<double, ublas::bounded_array<double,3> > v(3);
   ublas::vector<double> v(3);

this works:
   v= -ublas::unit_vector<double>(3,0);

but these give runtime logic errors:
   v= -ublas::unit_vector<double>(3,1);
   v= -ublas::unit_vector<double>(3,2);

Tested on gcc 3.4.4 (cygwin), vc8 (vc express), gcc (GCC) 4.1.2 20061115
(prerelease) (SUSE Linux)

I've had a look at the code, but it is beyond me at present to fix this.


Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.