collect() eats fractions

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Sat Apr 14 20:01:29 CEST 2001


A couple of hours ago, I wrote:
[...]
> > Btw, I have noticed that you use frequently
> > 
> >    for (int n=this->ldegree(s); n<=this->degree(s); n++)
> > 
> > instead of more efficient
> > 
> >    for (int n=this->ldegree(s), m=this->degree(s); n<=m; ++n)
> > 
> > that saves repeated calling of the degree() method.
> 
> Indeed, it does.  But where else besides in basic::collect() do you see
> occurences of this?

-- 
Richard Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>





More information about the GiNaC-devel mailing list