legendreTest.hh

Go to the documentation of this file.
1 
8 #ifndef legendreTest_hh
9 #define legendreTest_hh
10 
11 #include "basics/typedefs.hh"
12 #include "basics/testcase.hh"
13 
14 namespace test {
15 
16  // ********************************************************** LegendreTest **
17 
21  class LegendreTest : public TestCase {
22  public:
23  virtual ~LegendreTest() {}
24  virtual void run();
25 
27 
28  /* Computed Legendre Polynomials up to degree 3 are tested
29  * with the (known) monomials respresantation. The interval
30  * they are tested on is [-1,2].
31  *
32  */
35  private:
36  void testFunction_(const concepts::Real* f, uint n,
37  const concepts::Real* x, const char* formula);
38  };
39 
40 } // namespace test
41 
42 #endif // legendreTest_hh
Base class for tests.
Definition: testcase.hh:92
void testFunction_(const concepts::Real *f, uint n, const concepts::Real *x, const char *formula)
Unit tests.
Definition: testcase.hh:66
virtual ~LegendreTest()
Definition: legendreTest.hh:23
virtual void run()
Runs the tests. Must be overwritten by the specialization.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Tests for (orthonomalized) Legendre polynomials.
Definition: legendreTest.hh:21
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich