Re: [sage-devel] Re: Importing C functions though a 1-line command

2011-02-14 Thread Robert Bradshaw
On Sun, Feb 13, 2011 at 7:11 AM, Nathann Cohen wrote: >> What about the cython() function? The next version of Sage will get Cython's new inline function, so you can do stuff like {{{ a = math.pi cython.inline(""" cdef extern from "math.h": double sin(double) print sin(a) """) }}} Of course

Re: [sage-devel] Re: Importing C functions though a 1-line command

2011-02-13 Thread Nathann Cohen
> What about the cython() function? Isn't it only useful to import Cython code? I would like to import a .c file the same way :-) Nathann -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.

[sage-devel] Re: Importing C functions though a 1-line command

2011-02-13 Thread Volker Braun
On Sunday, February 13, 2011 9:27:29 AM UTC, Nathann Cohen wrote: > > I was wondering whether we already had (of if it would be interesting to > define) some nice alias to use Cython through Sage. I was wishing for a > one-liner to import a method defined in a .c file or in a library.. > What ab