PLaSK library
Loading...
Searching...
No Matches
toeplitz_test.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "../fourier/toeplitz.hpp"
Include dependency graph for toeplitz_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   "Toeplitz 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 (simple)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 16 of file toeplitz_test.cpp.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   "Toeplitz test"

Definition at line 17 of file toeplitz_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 toeplitz_test.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( simple  )

Definition at line 46 of file toeplitz_test.cpp.