From afdd37bf004164703bbc1a7877757c06ef2a2ec2 Mon Sep 17 00:00:00 2001 From: Nick Thompson Date: Thu, 27 Dec 2018 20:38:27 -0700 Subject: [PATCH] Also change concept and include test [CI SKIP] --- include/boost/math/tools/numerical_differentiation.hpp | 8 -------- .../numerical_differentiation_concept_test.cpp | 4 ++-- test/compile_test/numerical_differentiation_incl_test.cpp | 6 +++--- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/include/boost/math/tools/numerical_differentiation.hpp b/include/boost/math/tools/numerical_differentiation.hpp index eb4bdcb44..52d278889 100644 --- a/include/boost/math/tools/numerical_differentiation.hpp +++ b/include/boost/math/tools/numerical_differentiation.hpp @@ -9,12 +9,4 @@ BOOST_HEADER_DEPRECATED(""); -namespace boost { - namespace math { - namespace differentiation { - using finite_difference_derivative; - using complex_step_derivative; - } - } -} #endif diff --git a/test/compile_test/numerical_differentiation_concept_test.cpp b/test/compile_test/numerical_differentiation_concept_test.cpp index edf1dfa3d..7fcb898b8 100644 --- a/test/compile_test/numerical_differentiation_concept_test.cpp +++ b/test/compile_test/numerical_differentiation_concept_test.cpp @@ -4,12 +4,12 @@ // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include -#include +#include void compile_and_link_test() { boost::math::concepts::std_real_concept x = 0; auto f = [](boost::math::concepts::std_real_concept x) { return x; }; - boost::math::tools::finite_difference_derivative(f, x); + boost::math::differentiation::finite_difference_derivative(f, x); } diff --git a/test/compile_test/numerical_differentiation_incl_test.cpp b/test/compile_test/numerical_differentiation_incl_test.cpp index 56d2ea607..ab7c32cc6 100644 --- a/test/compile_test/numerical_differentiation_incl_test.cpp +++ b/test/compile_test/numerical_differentiation_incl_test.cpp @@ -6,7 +6,7 @@ // Basic sanity check that header // #includes all the files that it needs to. // -#include +#include // // Note this header includes no other headers, this is // important if this test is to be meaningful: @@ -17,8 +17,8 @@ void compile_and_link_test() { auto f = [](double x) { return x; }; double x = 0; - check_result(boost::math::tools::finite_difference_derivative(f, x)); + check_result(boost::math::differentiation::finite_difference_derivative(f, x)); auto g = [](std::complex x){ return x;}; - check_result(boost::math::tools::complex_step_derivative(g, x)); + check_result(boost::math::differentiation::complex_step_derivative(g, x)); }