On 2016-12-21 19:10, John Cremona wrote:
Is there a list somewhere of which C or C++ types or classes can be converted in cython files?
What do you mean with "converted" here? Convert from what to what?
But I want to make available a function which returns an NTL RR (real number). The NTL interface does not include RR. Would it be possible to do this, by first adding RR to the list of NTL types Sage knows about and then using that?
Of course. You need to add declarations for the NTL RR type (somewhere in sage/libs/ntl). In the .pxd file where you want to declare your function, you cimport the declaration of RR from NTL and then just declare your function as usual.
-- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.