mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
be (hopefully) smarter with indices convention : we keep the c convention
(0->n-1) as much as possible, and only convert at borders with fortran-expecting methods, that will eventually dissapear.
This commit is contained in:
@@ -246,6 +246,7 @@ void testLmder()
|
||||
covar_ftol = epsilon<double>();
|
||||
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());
|
||||
|
||||
MatrixXd cov_ref(n,n);
|
||||
@@ -761,6 +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)
|
||||
covar(n, fjac.data(), m, ipvt.data(), covar_ftol, wa.data());
|
||||
|
||||
MatrixXd cov_ref(n,n);
|
||||
|
||||
Reference in New Issue
Block a user