mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
iwa is not really an argument, but just an old fashioned 'work array' :
remove it from the eigen API
This commit is contained in:
@@ -250,17 +250,16 @@ template<typename Functor, typename Scalar>
|
||||
int ei_lmdif1(
|
||||
Matrix< Scalar, Dynamic, 1 > &x,
|
||||
Matrix< Scalar, Dynamic, 1 > &fvec,
|
||||
VectorXi &iwa,
|
||||
Scalar tol = ei_sqrt(epsilon<Scalar>())
|
||||
)
|
||||
{
|
||||
int n = x.size();
|
||||
int ldfjac = fvec.size();
|
||||
int lwa = ldfjac*n+5*n+ldfjac;
|
||||
VectorXi iwa(n);
|
||||
Matrix< Scalar, Dynamic, 1 > wa(lwa);
|
||||
Matrix< Scalar, Dynamic, Dynamic > fjac(ldfjac, n);
|
||||
|
||||
iwa.resize(n);
|
||||
wa.resize(lwa);
|
||||
return lmdif1_template<Scalar> (
|
||||
Functor::f, 0,
|
||||
|
||||
Reference in New Issue
Block a user