[GiNaC-devel] [PATCH] gcd: fix heuristics to chose main variable properly

Alexei Sheplyakov varg at theor.jinr.ru
Tue Nov 21 14:36:26 CET 2006


[adding ginac-devel to CC]

On Tue, Nov 21, 2006 at 09:28:13AM +0100, Bernard Parisse wrote:

> BTW, I checked your example with the gcd code of my giac library,
> it takes less than 3s. to normalize on a Intel(R) Pentium(R) M
> processor 1.60GHz, how long does it take with your patched ginac version?

[on a Pentium 4 3GHz box]
$ g++ -O2 -march=pentium4 -finline-limit=1200 thepoly_another.cpp -o thepoly_another -lginac
$ time ./thepoly_another >/dev/null 2>&1

real    0m7.846s
user    0m7.836s
sys     0m0.008s

With unpatched GiNaC it takes way to long (after several days of
calculation I get bored and killed the process).

Best regards,
 Alexei

-- 
All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-devel/attachments/20061121/55fcb7e9/attachment.pgp


More information about the GiNaC-devel mailing list