mirror of
https://github.com/boostorg/math.git
synced 2026-02-12 12:12:18 +00:00
Attempt to fix compilation error of Windows. Add compiler tests for Daubechies scaling.
This commit is contained in:
@@ -943,7 +943,8 @@ test-suite misc :
|
||||
[ run jacobi_test.cpp : : : [ requires cxx11_auto_declarations cxx11_constexpr cxx11_smart_ptr cxx11_defaulted_functions ] [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>-lquadmath ] ]
|
||||
[ run gegenbauer_test.cpp : : : [ requires cxx11_auto_declarations cxx11_constexpr cxx11_smart_ptr cxx11_defaulted_functions ] [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>-lquadmath ] ]
|
||||
[ run daubechies_scaling_test.cpp : : : [ requires cxx17_if_constexpr cxx17_std_apply ] [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>-lquadmath ] ]
|
||||
[ compile compile_test/daubechies_incl_test.cpp : [ requires cxx17_if_constexpr cxx17_std_apply ] ]
|
||||
[ compile compile_test/daubechies_filter_incl_test.cpp : [ requires cxx17_if_constexpr cxx17_std_apply ] ]
|
||||
[ compile compile_test/daubechies_scaling_incl_test.cpp : [ requires cxx17_if_constexpr cxx17_std_apply ] ]
|
||||
[ run whittaker_shannon_test.cpp : : : [ requires cxx11_auto_declarations cxx11_constexpr cxx11_smart_ptr cxx11_defaulted_functions ] ]
|
||||
[ run cardinal_quadratic_b_spline_test.cpp : : : [ requires cxx11_auto_declarations cxx11_constexpr cxx11_smart_ptr cxx11_defaulted_functions ] ]
|
||||
[ run cardinal_quintic_b_spline_test.cpp : : : [ requires cxx11_auto_declarations cxx11_constexpr cxx11_smart_ptr cxx11_defaulted_functions ] [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>-lquadmath ] ]
|
||||
|
||||
21
test/compile_test/daubechies_scaling_incl_test.cpp
Normal file
21
test/compile_test/daubechies_scaling_incl_test.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
// 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)
|
||||
//
|
||||
// Basic sanity check that header <boost/math/special_functions/gamma.hpp>
|
||||
// #includes all the files that it needs to.
|
||||
//
|
||||
#include <boost/math/special_functions/daubechies_scaling.hpp>
|
||||
//
|
||||
// Note this header includes no other headers, this is
|
||||
// important if this test is to be meaningful:
|
||||
//
|
||||
#include "test_compile_result.hpp"
|
||||
|
||||
void compile_and_link_test()
|
||||
{
|
||||
double x = 0;
|
||||
auto daub3 = boost::math::daubechies_scaling<double, 3>(5);
|
||||
check_result<double>(daub3(x));
|
||||
}
|
||||
@@ -9,6 +9,8 @@
|
||||
#include <numeric>
|
||||
#include <utility>
|
||||
#include <random>
|
||||
#include <array>
|
||||
#include <vector>
|
||||
#include <boost/math/interpolators/cubic_hermite.hpp>
|
||||
#include <boost/circular_buffer.hpp>
|
||||
#ifdef BOOST_HAS_FLOAT128
|
||||
|
||||
Reference in New Issue
Block a user