test_libraries.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2006 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9#ifndef __FTransform_test_libraries_h_
10#define __FTransform_test_libraries_h_
11
12#include "FTransform.h"
13
15namespace FTransform {
16
17 template<typename Method>
18 void test_libraries (Method runtest, const char* test_name)
19 {
20
21 unsigned nlib = FTransform::get_num_libraries ();
22
23 for (unsigned ilib=0; ilib < nlib; ilib++) {
24
25 std::string name = FTransform::get_library_name (ilib);
26
28
29 std::cerr << "\n"
30 "************************************************************\n"
31 "************************************************************\n"
32 "********\n"
33 "********\n"
34 "\n"
35 "Test of " << test_name << " with "
36 << FTransform::get_library() << std::endl <<
37 "\n"
38 "********\n"
39 "********\n"
40 "************************************************************\n"
41 "************************************************************\n"
42 "\n"
43 << std::endl;
44
45 runtest ();
46
47 }
48
49 }
50
51}
52
53#endif
54
55
Defines a single interface to a variety of Fourier transform libraries.
Definition FFTW3_Transform.h:14
void set_library(const std::string &name)
Set the library to the specified name.
Definition FTransform.C:146
unsigned get_num_libraries()
Get the number of available libraries.
Definition FTransform.C:152
std::string get_library()
Returns the name of the currently selected library.
Definition FTransform.C:96
std::string get_library_name(unsigned i)
Get the name of the ith available library.
Definition FTransform.C:158

Generated using doxygen 1.14.0