1
0
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:
2015-11-13 14:30:10 +00:00
parent ae62a3225d
commit aeda59adfa
12 changed files with 54 additions and 29 deletions

View File

@@ -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);