[GiNaC-devel] patch: valid C code for idx class with print_csrc
Markus Grabner
grabner at icg.tugraz.at
Tue Jul 10 11:35:33 CEST 2007
Am Montag, 9. Juli 2007 17:53 schrieb Jens Vollinga:
> Hi,
>
> I applied the print_csrc patch (Alexei's version) to CVS.
Thanks! BTW, I noticed a similar issue in fderivative. It outputs code like
D[0](myfunc)(...)
regardless of the print context. While it should be possible to declare D such
that the above statement is valid C code (should be something like an array
of functions taking another function as argument and returing a GiNaC::ex),
the resulting code is less clear. I attach a proposed solution, which prints
D0_myfunc(...)
instead. Alexei probably wants to apply the same improvement as he did with
the previous patch I submitted, but for me it works.
Kind regards,
Markus
--
Markus Grabner - Computer Graphics and Vision
Graz University of Technology, Inffeldgasse 16a/II, 8010 Graz, Austria
Phone: +43/316/873-5041, Fax: +43/316/873-5050
WWW: http://www.icg.tugraz.at/Members/grabner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ginac-csrc-fderivative.patch
Type: text/x-diff
Size: 1623 bytes
Desc: not available
Url : http://www.cebix.net/pipermail/ginac-devel/attachments/20070710/5ec384c7/ginac-csrc-fderivative.bin
More information about the GiNaC-devel
mailing list