PLaSK library
Loading...
Searching...
No Matches
fft_test.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "../fourier/fft.hpp"
Include dependency graph for fft_test.cpp:

Go to the source code of this file.

Namespaces

namespace  boost
 
namespace  boost::unit_test
 
namespace  boost::unit_test::ut_detail
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   "FFT test"
 
#define CHECK_CLOSE_COLLECTION(aa, bb, tolerance)
 

Functions

std::string boost::unit_test::ut_detail::normalize_test_case_name (const_string name)
 
 BOOST_AUTO_TEST_CASE (FullFFT)
 
 BOOST_AUTO_TEST_CASE (EvenFTT)
 
 BOOST_AUTO_TEST_CASE (FTT2D)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 16 of file fft_test.cpp.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   "FFT test"

Definition at line 17 of file fft_test.cpp.

◆ CHECK_CLOSE_COLLECTION

#define CHECK_CLOSE_COLLECTION (   aa,
  bb,
  tolerance 
)
Value:
{ \
using std::distance; \
using std::begin; \
using std::end; \
auto a = begin(aa), ae = end(aa); \
auto b = begin(bb); \
double total_error = 0.;\
for(; a != ae; ++a, ++b) total_error += abs2(*a - *b); \
}

Definition at line 28 of file fft_test.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( EvenFTT  )

Definition at line 96 of file fft_test.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( FTT2D  )

Definition at line 132 of file fft_test.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( FullFFT  )

Definition at line 46 of file fft_test.cpp.