mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2026-01-23 08:04:42 +00:00
dimension resized automatically for solvers
This commit is contained in:
@@ -95,7 +95,7 @@ GslHybridRootFinder::operator()(const vector<DoubleFunction *> &func)
|
||||
}
|
||||
if (res.size() != nArg)
|
||||
{
|
||||
res.conservativeResize(nArg);
|
||||
resize(nArg);
|
||||
}
|
||||
solver_ = gsl_multiroot_fsolver_alloc(gsl_multiroot_fsolver_hybrids, nFunc);
|
||||
x = gsl_vector_alloc(nFunc);
|
||||
|
||||
Reference in New Issue
Block a user