2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Fix inspect issues under reporting/

This commit is contained in:
jzmaddock
2021-03-30 11:34:39 +01:00
parent b68fb724b1
commit 5f178548e0
8 changed files with 27 additions and 3 deletions

View File

@@ -4,6 +4,11 @@
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// We deliberately include some Unicode characters:
//
// boost-no-inspect
//
#include <iostream>
#include <boost/math/tools/ulps_plot.hpp>
#include <boost/core/demangle.hpp>

View File

@@ -4,6 +4,11 @@
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// We deliberately include some Unicode characters:
//
// boost-no-inspect
//
#include <iostream>
#include <boost/math/tools/ulps_plot.hpp>
#include <boost/core/demangle.hpp>

View File

@@ -1,3 +1,7 @@
// (C) Copyright Evan Miller 2020.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <iostream>
#include <boost/math/tools/ulps_plot.hpp>

View File

@@ -1,3 +1,7 @@
// (C) Copyright Evan Miller 2020.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <iostream>
#include <boost/math/tools/ulps_plot.hpp>

View File

@@ -22,7 +22,7 @@ int main()
using boost::math::rsqrt;
return rsqrt(x);
};
auto plot03 = ulps_plot<decltype(f), PreciseReal, CoarseReal>(f, std::numeric_limits<CoarseReal>::min(), CoarseReal(100), samples);
auto plot03 = ulps_plot<decltype(f), PreciseReal, CoarseReal>(f, (std::numeric_limits<CoarseReal>::min)(), CoarseReal(100), samples);
plot03.width(width);
std::string title = "rsqrt ULPs plot at quad precision";
plot03.title(title);

View File

@@ -1,3 +1,8 @@
// (C) Copyright Nick Thompson 2020.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <vector>
#include <random>
#include <benchmark/benchmark.h>
@@ -54,4 +59,4 @@ BENCHMARK_TEMPLATE(ChebyshevClenshaw, double)->RangeMultiplier(2)->Range(1<<1, 1
BENCHMARK_MAIN();
BENCHMARK_MAIN();

View File

@@ -0,0 +1 @@

View File

@@ -67,4 +67,4 @@ iterative_fast/2097152 19627331 ns 19510132 ns 36
iterative_fast/4194304 42351871 ns 42240620 ns 17
iterative_fast_BigO 0.46 NlgN 0.45 NlgN
iterative_fast_RMS 5 % 5 %
*/
*/