[GiNaC-list] Term ordering and compiling C++ code
jros
jros at unavarra.es
Wed May 26 15:02:16 CEST 2010
Very nice code, I like it a lot.
It's a pity that "ex::gethash() is not unique", that
would certainly improve things a lot.
Thanks,
Javier
-----Original Message-----
From: Doug <cape1232 at yahoo.com>
Reply-to: GiNaC discussion list <ginac-list at ginac.de>
To: GiNaC discussion list <ginac-list at ginac.de>
Subject: Re: [GiNaC-list] Term ordering and compiling C++ code
Date: Tue, 25 May 2010 07:45:05 -0700 (PDT)
Hi All,
Attached is the code for generating C/C++ code from a GiNaC expression
that pulls out subexpressions and declares them up front so that they
only have to be evaluated once. The .hh file has documentation and a
simple usage example.
I hope this is useful.
I used it to reduce 50MB of code to under 300K and improved the running
time dramatically.
-Doug
Support NPR 20 seconds at a time. www.twentysecondsatatime.org
_______________________________________________
GiNaC-list mailing list
GiNaC-list at ginac.de
https://www.cebix.net/mailman/listinfo/ginac-list
More information about the GiNaC-list
mailing list