Ah yes, I just copied wrong. But this wouldn't be the source of the problem, as the program terminates before it tries to accumulate y or z.
On Wednesday 01 December 2010 18:00:10 Rafael Calsaverini wrote:
[...]
> ublas::vector<double> x(3), y(3), z(3);[...]
>
> x[0] = 1; x[1] = 1; x[2] = 1;
> x[0] = 1; x[1] = 1; x[2] = 2;
> x[0] = 2; x[1] = 1; x[2] = 1;
I really don't know about basic problems, but I hope you initialized y and z
in your real code?
Have a nice day
Tim
_______________________________________________Sent to: rafael.calsaverini@gmail.com
ublas mailing list
ublas@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/ublas