[SciPy-dev] gsl and scipy

Jochen Küpper jochen at unc.edu
Fri May 3 11:56:33 EDT 2002


On Fri, 3 May 2002 09:52:24 -0500 (CDT) pearu  wrote:

arnd> Is there the possibility to use f2py etc. to generate the
arnd> necessary wrappers for scipy in an automatic way ?  (on the gsl
arnd> page they recommend: swig, g-wrap) How difficult would this be ?
>> 
>> Pearu,  that's actually exactly the question I was going to ask for
>> the last couple of months:)

pearu> It is rather straightforward for functions with scalar
pearu> (int,float,double,..), *scalar, scalar[] arguments.

Well, more important, besides the "complex"-problem: What's about
functions taking arrays or function arguments (which in general are
some fancy struct again)?  I.e.
,----
| void gsl_siman_solve (const gsl_rng * R, void *X0_P,
|           gsl_siman_Efunc_t EF, gsl_siman_step_t TAKE_STEP,
|           gsl_siman_metric_t DISTANCE, gsl_siman_print_t
|           PRINT_POSITION, gsl_siman_copy_t COPYFUNC,
|           gsl_siman_copy_construct_t COPY_CONSTRUCTOR,
|           gsl_siman_destroy_t DESTRUCTOR, size_t ELEMENT_SIZE,
|           gsl_siman_params_t PARAMS)
`----

Greetings,
Jochen
-- 
University of North Carolina                       phone: +1-919-962-4403
Department of Chemistry                            phone: +1-919-962-1579
Venable Hall CB#3290 (Kenan C148)                    fax: +1-919-843-6041
Chapel Hill, NC 27599, USA                            GnuPG key: 44BCCD8E




More information about the SciPy-Dev mailing list