merging ei_lmdif() and lmdif_template()

This commit is contained in:
Thomas Capricelli
2009-08-21 04:24:59 +02:00
parent 2e3d17c3ce
commit 20480a5438
4 changed files with 63 additions and 198 deletions

View File

@@ -762,7 +762,7 @@ void testLmdif()
covar_ftol = epsilon<double>();
covfac = fnorm*fnorm/(m-n);
VectorXd wa(n);
// ipvt.cwise()+=1; // covar() expects the fortran convention (as qrfac provides)
ipvt.cwise()+=1; // covar() expects the fortran convention (as qrfac provides)
covar(n, fjac.data(), m, ipvt.data(), covar_ftol, wa.data());
MatrixXd cov_ref(n,n);