SmallESTest.hh

Go to the documentation of this file.
1 
6 #ifndef SmallESTest_hh
7 #define SmallESTest_hh
8 
9 #include <iostream>
10 #include <cstdlib>
11 #include <unistd.h> // for command line parsing
12 #include "basics/testsuite.hh"
13 #include "basics/typedefs.hh"
14 
15 #include "eigensolver/SmallES.hh"
16 #include "operator/superLU.hh"
17 #include "basics/exceptions.hh"
18 #include "toolbox/array.hh"
19 
20 
21 namespace test {
22 
23  class SmallESTest : public TestCase {
24  public:
25  virtual ~SmallESTest();
26  virtual void run();
29  private:
30  /*
31  IMPORTANT: The num Test doen't work for Real valued input with complex eigenvalues!!!!
32  The structure of the output will be changed soon (Issue 178)
33  */
34  template <typename F>
36  const concepts::Array<F>& ev1,
37  const concepts::Array<concepts::Vector<F>* >& ef1);
38  template <typename F>
40  const concepts::Array<F>& ev1,
41  const concepts::Array<concepts::Vector<F>* >& ef1);
42  template <typename F>
44  const concepts::Array<F>& ev1,
45  const concepts::Array<concepts::Vector<F>* >& ef1);
46  template <typename F>
48  const concepts::Array<F>& ev1,
49  const concepts::Array<concepts::Vector<F>* >& ef1){
50  numTestArray_(reinterpret_cast<const concepts::Matrix<F> &>(Id), ev1, ef1);
51  };
52 
53 
54 
55  };
56 
57 } // namespace test
58 
59 # endif // SmallESTest_hh
60 
61 
Base class for tests.
Definition: testcase.hh:92
void numTestArray_(const concepts::Array< F > &Id, const concepts::Array< F > &ev1, const concepts::Array< concepts::Vector< F > * > &ef1)
Unit tests.
Definition: testcase.hh:66
void numTestArray_(const concepts::Matrix< F > &Id, const concepts::Array< F > &ev1, const concepts::Array< concepts::Vector< F > * > &ef1)
virtual ~SmallESTest()
An array of objects.
Definition: bilinearForm.hh:23
Abstract class for an operator.
Definition: compositions.hh:31
void numTestArray_(const concepts::ElementMatrix< F > &Id, const concepts::Array< F > &ev1, const concepts::Array< concepts::Vector< F > * > &ef1)
Element matrix.
Definition: linearForm.hh:18
void numTestArray_(const concepts::DenseMatrix< F > &Id, const concepts::Array< F > &ev1, const concepts::Array< concepts::Vector< F > * > &ef1)
Definition: SmallESTest.hh:47
virtual void run()
Runs the tests. Must be overwritten by the specialization.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich