Boost logo

Ublas :

Subject: Re: [ublas] Accumulators with vectors
From: Rafael Calsaverini (rafael.calsaverini_at_[hidden])
Date: 2010-12-01 14:32:20


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.

The program dies in attempting the command
acc(x);

---
Rafael Calsaverini
Dep. de Física Geral, Sala 336
Instituto de Física - Universidade de São Paulo
rafael.calsaverini_at_[hidden]
http://stoa.usp.br/calsaverini/weblog
CEL: (11) 7525-6222
USP: (11) 3091-6803
On Wed, Dec 1, 2010 at 15:06, Tim Odenthal <Tim.Odenthal_at_[hidden]>wrote:
>
> 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
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: rafael.calsaverini_at_[hidden]
>