[GiNaC-list] Term ordering and compiling C++ code

Doug cape1232 at yahoo.com
Tue May 25 16:45:05 CEST 2010


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




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20100525/6137ea1a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GinacPrint.tar.gz
Type: application/x-gzip
Size: 3657 bytes
Desc: not available
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20100525/6137ea1a/attachment.gz>


More information about the GiNaC-list mailing list