Skip to content
Snippets Groups Projects
Commit 566b46ad authored by Kevin Höllring's avatar Kevin Höllring
Browse files

Fix wrong way of calling differentiator

parent 512cfed9
No related branches found
No related tags found
No related merge requests found
Pipeline #32825 failed
...@@ -17,7 +17,7 @@ class ScalarDifferential ...@@ -17,7 +17,7 @@ class ScalarDifferential
Vector<valtype> operator()(Coordinate<argtype> x) const override { Vector<valtype> operator()(Coordinate<argtype> x) const override {
assert(x.dimension() == input_dimension()); assert(x.dimension() == input_dimension());
return diff(func, x, Vector<valtype>(x.dimension(), h)); return diff.diff(func, x, Vector<valtype>(x.dimension(), h));
} }
size_t input_dimension() const override { return func.input_dimension(); } size_t input_dimension() const override { return func.input_dimension(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment