Gromacs  2018.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx_lmcurve.cpp File Reference
#include "gmxpre.h"
#include "gmx_lmcurve.h"
#include <lmmin.h>
#include <lmstruct.h>
+ Include dependency graph for gmx_lmcurve.cpp:

Description

Defines a driver routine for lmfit, and a callback for it to use.

Author
David van der Spoel david.nosp@m..van.nosp@m.dersp.nosp@m.oel@.nosp@m.icm.u.nosp@m.u.se

Functions

static void lmcurve_evaluate (const double *par, const int m_dat, const void *data, double *fvec, int *info)
 Callback function used by lmmin.
 
void gmx_lmcurve (const int n_par, double *par, const int m_dat, const double *t, const double *y, const double *dy, double(*f)(double t, const double *par), const lm_control_struct *control, lm_status_struct *status)
 Calls lmmin with the given data, with callback function f.