d74114caaf8f10f7dd526b3f7ccf280f16c10c1d
[alexxy/gromacs.git] / src / external / lmfit / lmcurve.h
1 /*
2  * Library:   lmfit (Levenberg-Marquardt least squares fitting)
3  *
4  * File:      lmcurve.h
5  *
6  * Contents:  Declarations for Levenberg-Marquardt curve fitting.
7  *
8  * Copyright: Joachim Wuttke, Forschungszentrum Juelich GmbH (2004-2013)
9  *
10  * License:   see ../COPYING (FreeBSD)
11  *
12  * Homepage:  apps.jcns.fz-juelich.de/lmfit
13  */
14
15 #ifndef LMCURVE_H
16 #define LMCURVE_H
17 #undef __BEGIN_DECLS
18 #undef __END_DECLS
19 #ifdef __cplusplus
20 # define __BEGIN_DECLS extern "C" {
21 # define __END_DECLS }
22 #else
23 # define __BEGIN_DECLS /* empty */
24 # define __END_DECLS   /* empty */
25 #endif
26
27 #include "lmstruct.h"
28
29 __BEGIN_DECLS
30
31 void lmcurve( int n_par, double *par, int m_dat,
32               const double *t, const double *y,
33               double (*f)( double t, const double *par ),
34               const lm_control_struct *control,
35               lm_status_struct *status );
36
37 __END_DECLS
38 #endif /* LMCURVE_H */