Go to the source code of this file.
◆ TEST_CASE()
      
        
          | TEST_CASE  | 
          ( | 
          "Wavelet Factory Operator"  | 
           | ) | 
           | 
        
      
 
Definition at line 9 of file wavelet_factory.cc.
   11   const std::vector<std::tuple<std::string, t_uint>> wavelets{
 
   12       std::make_tuple(
"Dirac", 3u), std::make_tuple(
"DB1", 3u), std::make_tuple(
"DB2", 3u),
 
   13       std::make_tuple(
"DB3", 3u),   std::make_tuple(
"DB4", 3u), std::make_tuple(
"DB5", 3u),
 
   14       std::make_tuple(
"DB6", 3u),   std::make_tuple(
"DB7", 3u), std::make_tuple(
"DB8", 3u)};
 
   15   auto const imsizey = 128;
 
   16   auto const imsizex = 128;
 
   17   const auto sara = sopt::wavelets::SARA(wavelets.begin(), wavelets.end());
 
   18   auto phi = sopt::linear_transform<t_complex>(sara, imsizey, imsizex);
 
   19   auto op = std::make_shared<sopt::LinearTransform<Vector<t_complex>> 
const>(phi);
 
   20   auto factory_op = factory::wavelet_operator_factory<Vector<t_complex>>(
 
   21       factory::distributed_wavelet_operator::serial, wavelets, imsizey, imsizex);
 
   25     const Vector<t_complex> input = Vector<t_complex>::Random(sara.size() * imsizex * imsizey);
 
   26     REQUIRE((*op * input).isApprox(*factory_op * input));
 
   29     const Vector<t_complex> input = Vector<t_complex>::Random(imsizex * imsizey);
 
   30     REQUIRE((op->adjoint() * input).isApprox(factory_op->adjoint() * input));
 
void set_level(const std::string &level)
Method to set the logging level of the default Log object.
 
 
References purify::factory::serial, and purify::logging::set_level().