diff --git a/include/boost/math/optimization/detail/differentiable_opt_utilties.hpp b/include/boost/math/optimization/detail/differentiable_opt_utilties.hpp index 32bd8796f..48e80ae71 100644 --- a/include/boost/math/optimization/detail/differentiable_opt_utilties.hpp +++ b/include/boost/math/optimization/detail/differentiable_opt_utilties.hpp @@ -1,5 +1,10 @@ +// Copyright Maksym Zhelyenzyakov 2025-2026. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// https://www.boost.org/LICENSE_1_0.txt) #ifndef DIFFERENTIABLE_OPT_UTILITIES_HPP #define DIFFERENTIABLE_OPT_UTILITIES_HPP +#include #include #include #include @@ -10,47 +15,92 @@ namespace boost { namespace math { namespace optimization { -template struct update_policy_real_type; -template struct update_policy_real_type; +namespace rdiff = boost::math::differentiation::reverse_mode; -template