In the end it was just this, plus several nasty bugs that took me some time.
Without help, I'd still be there !
Here it is : http://trac.sagemath.org/sage_trac/ticket/8172
Thank youu very much
Nathann
On 21 February 2010 17:47, David Roe wrote:
> If you're calling the functio
If you're calling the functions from cython code, and your variables are
cdef'd properly (so that the cython compiler knows the type of the object),
and the function you're calling is cdef'd, it will use C function calls and
you can pass in C types.
David
On Sat, Feb 20, 2010 at 7:46 AM, Nathann C
On Sat, Feb 20, 2010 at 4:46 AM, Nathann Cohen wrote:
> But when I instanciate the class I can only use its methods as Python
> functions... My problem is that some arguments are to be C types :-/
cimport the module and cdef the class. Then you can call C methods.
This sort of thing is used in m
But when I instanciate the class I can only use its methods as Python
functions... My problem is that some arguments are to be C types :-/
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...@googl
On Thu, Feb 18, 2010 at 5:22 AM, Nathann Cohen wrote:
> Hello everybody
>
> I have been spending hours on the same Cython problem, which I hope
> you can solve instantly :-)
>
> I have a Cython file, which happens to be sage/numerical/mip_coin.pyx
> which defines the following function :
>
>
Maybe try
cimport sage.numerical.mip_coin
from sage.numerical.mip_coin cimport osi_solve
David
On Thu, Feb 18, 2010 at 8:22 AM, Nathann Cohen wrote:
> Hello everybody
>
> I have been spending hours on the same Cython problem, which I hope
> you can solve instantly :-)
>
> I have a Cython fi
Hello everybody
I have been spending hours on the same Cython problem, which I hope
you can solve instantly :-)
I have a Cython file, which happens to be sage/numerical/mip_coin.pyx
which defines the following function :
cdef float osi_solve(self,c_OsiSolverInterface * si,bool log,bool
obje