From: Charles R H. <cha...@gm...> - 2006-07-07 15:48:17
|
On 7/7/06, Bill Baxter <wb...@gm...> wrote: > > On 7/7/06, Tim Hochberg <tim...@co...> wrote: > > > > The funny thing is that having a dot(a,b,c,...) would lead to the > > > exact same kind of hidden performance problems you're arguing against. > > Not exactly arguing -- this isn't why I don't like H and friends -- just > > > > noting that this is one of the traps that people are likely to fall into > > when transferring equations to code. > > <snip> A = D > A *= -2 > A += C > A += B > I would like to write something like: A = D.copy().times(-2).plus(C).plus(B) i.e. copy produces a "register", the rest is reverse Polish, and = "stores" the result. Chuck |