diff --git a/opensfm/src/foundation/newton_raphson.h b/opensfm/src/foundation/newton_raphson.h index 47db76d5f..63b44e976 100644 --- a/opensfm/src/foundation/newton_raphson.h +++ b/opensfm/src/foundation/newton_raphson.h @@ -44,7 +44,6 @@ template struct FiniteDiff { static typename TypeTraits<1, 1>::Jacobian Derivative( const F& func, typename TypeTraits<1, 1>::Values& x) { - typename TypeTraits<1, 1>::Jacobian jacobian; constexpr auto eps = 1e-15; return (func(x + eps) - func(x)) / eps; } @@ -77,7 +76,6 @@ template > typename TypeTraits::Values NewtonRaphson( const F& func, const typename TypeTraits::Values& initial_value, int iterations, double tol = 1e-6) { - constexpr auto eps = std::numeric_limits::epsilon(); auto current_value = initial_value; for (int i = 0; i < iterations; ++i) { const auto at_current_value = func(current_value);