Skip to content

Commit

Permalink
core: return value in finite_difference_wrapper<_Scalar, TOC2>::opera…
Browse files Browse the repository at this point in the history
…tor()
  • Loading branch information
jorisv committed Jan 19, 2024
1 parent 84bf6cd commit 5c5de63
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ struct finite_difference_wrapper<_Scalar, TOC2> : C2FunctionTpl<_Scalar> {
const FuncType &func, const Scalar fd_eps)
: Base(space, func.nr()), space(space), func(func), fd_eps(fd_eps) {}

VectorXs operator()(const ConstVectorRef &x) const override { func(x); }
VectorXs operator()(const ConstVectorRef &x) const override {
return func(x);
}

void computeJacobian(const ConstVectorRef &x, MatrixRef Jout) const override {
func.computeJacobian(x, Jout);
Expand Down

0 comments on commit 5c5de63

Please sign in to comment.