gcd(): allow user to override (some of) heuristics.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Mon, 25 Aug 2008 12:54:46 +0000 (16:54 +0400)
committerJens Vollinga <jensv@nikhef.nl>
Wed, 27 Aug 2008 14:22:59 +0000 (16:22 +0200)
commitc77689e7ac8d8f4dbca0f337b6e9acf2419010ff
treee484aef18459bbc57d28a715b0546d2f61e3cb45
parent77b6a0304a48d6a306deeda18177680f16025b33
gcd(): allow user to override (some of) heuristics.

GiNaC tries to avoid expanding expressions while computing GCDs and applies
a number of heuristics. Usually this improves performance, but in some cases
it doesn't. Allow user to switch off heuristics.

Part 5:

* gcd(): don't use heuristic GCD algorithm if gcd_options::no_heur_gcd
  flag is set.
* gcd(): don't handle partially factored expressions in a special way
  if gcd_options::no_part_factored flag is set.
ginac/normal.cpp