generating C or Java, was: Why is *print-circle* set to T by default? WAS: grinding, etc.
Subject: generating C or Java, was: Why is *print-circle* set to T by default? WAS: grinding, etc.
From: Leo T Butler
Date: Thu, 10 Feb 2011 13:02:39 +0000
>> I also need to write for Gnu GMP under C++, which has
>> some nasty notations.
>
> Yeah, it's quite a disaster, isn't it ... but tell us what you want
> and I'll give it a try.
Jon Wilkening at Berkeley has written a nice C++ wrapper around GMP,
so that the code can look quite natural unlike C code using GMP.
http://math.berkeley.edu/~wilken/code/gmpfrxx/
I seem to recall I persuaded him to release the code under GPL,
as I used it in a project a few years ago and we corresponded then.
>
>> Moreover i want to do these computations for complex numbers,
>> so i have to promote reals to
>> complex numbers when they appear in the expressions, etc.
I am not sure if the wrapper handles complex numbers at this point,
though.
Leo
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.