]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/math/example/daubechies_wavelets/bootstrap_chebyshev.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / math / example / daubechies_wavelets / bootstrap_chebyshev.cpp
CommitLineData
1e59de90
TL
1// (C) Copyright Nick Thompson 2020.
2// Use, modification and distribution are subject to the
3// Boost Software License, Version 1.0. (See accompanying file
4// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
f67539c2
TL
6#include <iostream>
7#include <boost/math/special_functions/daubechies_scaling.hpp>
8#include <boost/math/special_functions/chebyshev_transform.hpp>
9
10template<typename Real, int p>
11void bootstrap()
12{
13 std::cout << "Computing phi. . .\n";
14 auto phi = boost::math::daubechies_scaling<Real, p>();
15 std::cout << "Computing Chebyshev transform of phi.\n";
16 auto cheb = boost::math::chebyshev_transform(phi, phi.support().first, phi.support().second);
17 std::cout << "Number of coefficients = " << cheb.coefficients().size() << "\n";
18}
19
20int main()
21{
22 bootstrap<long double, 9>();
1e59de90 23}