• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 %module lmfit
2 
3 %{
4 #include <lmmin.h>
5 #include <lmcurve.h>
6 %}
7 
8 %include "cpointer.i"
9 %include "carrays.i"
10 
11 %inline %{
12 extern const lm_control_struct lm_control_float;
13 extern const lm_control_struct lm_control_double;
14 %}
15 
16 %pointer_functions(unsigned short, usp)
17 %array_functions(double, doubleArray);
18 
19 double lm_enorm( int, const double * );
20 
21 double lm_enorm( int, const double * );
22 
23 void lmcurve_fit( int, double*, int, const double*, const double*,
24                   double (*f)( double, const double *),
25                   lm_control_struct*, lm_status_struct* );
26