[sage-devel] Re: Cython equivalents of *

2009-07-08 Thread Nathann Cohen
Good pick !! ;-) It seems ok now that I have changed the function's definition.. I still have one other bug to solve (http://groups.google.com/group/sage- devel/browse_thread/thread/eb507cfad11d9167) before the linking process ( I'm a bit scared of that one ) and then I will now if this whole cod

[sage-devel] Re: Cython equivalents of *

2009-07-08 Thread Martin Albrecht
On Wednesday 08 July 2009, Nathann Cohen wrote: > Thanks !!! > > But sadly, now I get this error : > > si.loadProblem(matrix[0], col_lb, col_ub, objective, row_lb, row_ub); > ^ > > > /user/ncohen/home/sage/EXAMPLEOSI.

[sage-devel] Re: Cython equivalents of *

2009-07-08 Thread Nathann Cohen
Thanks !!! But sadly, now I get this error : si.loadProblem(matrix[0], col_lb, col_ub, objective, row_lb, row_ub); ^ /user/ncohen/home/sage/EXAMPLEOSI.pyx:102:21: Cannot assign type 'c_CoinPackedMatrix' to 'c_CoinP

[sage-devel] Re: Cython equivalents of *

2009-07-08 Thread Martin Albrecht
On Wednesday 08 July 2009, Nathann Cohen wrote: > Hello !!! > > When dealing with pointers in Cython, I had to learn the equivalent to > the & in C was cython.address(). What is the reverse of this > function ? What is the equivalent of * ? You can also use & in Cython, I do it all the time. > I