[GiNaC-list] FORTRAN output

Chris.Dams at mi.infn.it Chris.Dams at mi.infn.it
Wed Mar 28 10:34:32 CEST 2007


Dear Warren,

> I am working on a program that uses ginac to generate source code.  One
> part of the program generates fortran-90 code. Currently I am
> experimenting with using the csrc output format, but with the print
> function of the power class redefined as in section 6.3.1 of the online
> tutorial.  Is there a better way?  Has anyone implemented a full-blown
> fortran output format?

I think the canonical way to do that would be to define a new format for
fortran output. If you make that inherit from csrc, you do not need to
override very many functions. After that you can make a patch from it and
make us happy by mailing it to ginac-devel. :-)

Best wishes,
Chris



More information about the GiNaC-list mailing list