We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d5b746 commit e8018f4Copy full SHA for e8018f4
1 file changed
src/tnlp.hxx
@@ -328,7 +328,7 @@ namespace roboptim
328
if (!solver_.problem ().startingPoint ())
329
return true;
330
331
- Eigen::Map<Function::result_t> x_ (x, n);
+ Eigen::Map<Function::argument_t> x_ (x, n);
332
x_ = *solver_.problem ().startingPoint ();
333
334
}
@@ -552,8 +552,7 @@ namespace roboptim
552
553
else
554
{
555
- solver_t::vector_t x_ (n);
556
- array_to_vector (x_, x);
+ Eigen::Map<const function_t::argument_t> x_ (x, n);
557
558
TwiceDifferentiableFunction::hessian_t h
559
((*costFunction_).inputSize (),
0 commit comments