[Pyrex] [Cython] pyrex problems

Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 1 00:21:25 CEST 2008


On Mon, Apr 21, 2008 at 3:27 PM, Marco Zanger <marcozanger at gmail.com
<mailto:marcozanger at gmail.com>> wrote:

>  ctypedef struct cGCoptimization "GCoptimization":
>    EnergyType expansionIter "expansion"(int max_num_iterations)
>

You need to declare the member functions as function
pointers, e.g.

   ctypedef struct cGCoptimization "GCoptimization":
     EnergyType (*expansionIter "expansion")(int max_num_iterations)

-- 
Greg



More information about the Pyrex mailing list