2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-22 15:32:28 +00:00

Also change concept and include test [CI SKIP]

This commit is contained in:
Nick Thompson
2018-12-27 20:38:27 -07:00
committed by Matt Pulver
parent 1f1e9974f0
commit afdd37bf00
3 changed files with 5 additions and 13 deletions

View File

@@ -4,12 +4,12 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/math/concepts/std_real_concept.hpp>
#include <boost/math/tools/numerical_differentiation.hpp>
#include <boost/math/differentiation/finite_difference.hpp>
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);
}

View File

@@ -6,7 +6,7 @@
// Basic sanity check that header <boost/math/special_functions/gamma.hpp>
// #includes all the files that it needs to.
//
#include <boost/math/tools/numerical_differentiation.hpp>
#include <boost/math/differentiation/numerical_differentiation.hpp>
//
// 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<double>(boost::math::tools::finite_difference_derivative(f, x));
check_result<double>(boost::math::differentiation::finite_difference_derivative(f, x));
auto g = [](std::complex<double> x){ return x;};
check_result<double>(boost::math::tools::complex_step_derivative(g, x));
check_result<double>(boost::math::differentiation::complex_step_derivative(g, x));
}