• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <iostream>
2 #include <boost/math/special_functions/daubechies_scaling.hpp>
3 #include <boost/math/special_functions/chebyshev_transform.hpp>
4 
5 template<typename Real, int p>
bootstrap()6 void bootstrap()
7 {
8     std::cout << "Computing phi. . .\n";
9     auto phi = boost::math::daubechies_scaling<Real, p>();
10     std::cout << "Computing Chebyshev transform of phi.\n";
11     auto cheb = boost::math::chebyshev_transform(phi, phi.support().first, phi.support().second);
12     std::cout << "Number of coefficients = " << cheb.coefficients().size() << "\n";
13 }
14 
main()15 int main()
16 {
17     bootstrap<long double, 9>();
18 }