raw import of covar() : this is the last one, and we now do not depend on

the cminpack library anymore.
This commit is contained in:
Thomas Capricelli
2009-08-22 06:44:41 +02:00
parent 16061a46db
commit aa3a7c3303
4 changed files with 131 additions and 13 deletions

View File

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