#include "nr.h" void NR::mrqmin(Vec_I_DP &x, Vec_I_DP &y, Vec_I_DP &sig, Vec_IO_DP &a, Vec_I_BOOL &ia, Mat_O_DP &covar, Mat_O_DP &alpha, DP &chisq, void funcs(const DP, Vec_I_DP &, DP &, Vec_O_DP &), DP &alamda) { static int mfit; static DP ochisq; int j,k,l; int ma=a.size(); static Mat_DP oneda(ma,1); static Vec_DP atry(ma),beta(ma),da(ma); if (alamda < 0.0) { mfit=0; for (j=0;j