Make .eval() evaluate top-level only.
authorRichard Kreckel <kreckel@ginac.de>
Wed, 16 Dec 2015 20:22:36 +0000 (21:22 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Wed, 16 Dec 2015 20:22:36 +0000 (21:22 +0100)
commit6c946d4c762f5a0d6a3b742f03556dd018d63886
tree1c949470b8d34294e113a41268294c895721b1be
parentae6c004bd31e02dda37357d74b641c101b116c73
Make .eval() evaluate top-level only.

With the previous patch, some old workarounds have become unnecessary:
If all expressions are evaluated, any object which is an aggregate of
expressions will only ever have to evaluate the top level. As such, it
has become pointless to evaluate child objects of an expression prior
to doing its own term-rewriting. This patch removes the evaluation of
children from all GiNaC objects. It also removes the now superfluous
parameter 'level' of the eval methods.
41 files changed:
check/exam_inifcns_nstdsums.cpp
check/exam_paranoia.cpp
check/exam_structure.cpp
doc/tutorial/ginac.texi
ginac/add.cpp
ginac/add.h
ginac/basic.cpp
ginac/basic.h
ginac/container.h
ginac/ex.cpp
ginac/ex.h
ginac/expairseq.cpp
ginac/expairseq.h
ginac/factor.cpp
ginac/fderivative.cpp
ginac/fderivative.h
ginac/function.cppy
ginac/function.hppy
ginac/indexed.cpp
ginac/indexed.h
ginac/inifcns_nstdsums.cpp
ginac/integral.cpp
ginac/integral.h
ginac/matrix.cpp
ginac/matrix.h
ginac/mul.cpp
ginac/mul.h
ginac/ncmul.cpp
ginac/ncmul.h
ginac/normal.cpp
ginac/numeric.cpp
ginac/numeric.h
ginac/power.cpp
ginac/power.h
ginac/pseries.cpp
ginac/pseries.h
ginac/relational.cpp
ginac/relational.h
ginac/structure.h
ginac/symbol.h
ginsh/ginsh_parser.ypp