15 Jul
2008
15 Jul
'08
1:16 p.m.
Dear Alexei, Alexei Sheplyakov schrieb:
What about associative arrays? I.e.
that's a very good idea. But I would wrap them in some kind of GiNaC class then like lst does with STL::list.
exmap eqns; eqns[a*x + b*y] = 5; eqns[c*x + d*y] = 7; exvector vars = boost::list_of(x)(y); exmap result = solve(eqns, vars);
But from your example (using exvector and the boost lib) I get the impression you don't like that kind of wrapping ... ? Anyway, it looks like a good improvement, at least as long as we don't care about inequalities ;-). Regards, Jens