Class documentation of Concepts

Loading...
Searching...
No Matches
constrained.hh
Go to the documentation of this file.
1
6#ifndef testConstrained_hh
7#define testConstrained_hh
8
9#include "basics/testcase.hh"
10#include "operator/sparseMatrix.hh"
11#include "toolbox/array.hh"
12
13using concepts::Real;
14
15namespace test {
16
17 // ******************************************************** ConstrainedEVP **
18
28 class ConstrainedEVP : public TestCase {
29 public:
30 ConstrainedEVP(uint dim, uint cdim, uint gdim, uint kmax) :
31 spc(dim), cspc(cdim), gspc(gdim),
32 a(0), b(spc, spc), c(spc, cspc), kmax_(kmax) {}
33 virtual void run();
34#ifdef HAS_ARPACK
36 void testARPACKregularInv();
38 void testARPACKshiftInv();
39#endif
40#ifdef HAS_JDBSym
42 void testJDBSym();
43#endif
46 private:
47 void testResults(const concepts::Array<Real>& res);
48 protected:
49 concepts::DummySpace<Real> spc, cspc, gspc;
50 std::unique_ptr<concepts::Operator<Real> > a;
52 const Real* exact_;
53 const uint kmax_;
54 };
55
56 // ********************************************************** GolubExample **
57
87 public:
90 virtual ~GolubExample() {}
91 private:
92 static const Real exact[4];
93 };
94
95 // ******************************************************* GolubExampleSum **
96
108 public:
111 virtual ~GolubExampleSum() {}
112 private:
113 static const Real exact[4];
115 };
116
117 // ************************************************ MaxwellTransmissionEVP **
118
123 public:
126 virtual ~MaxwellTransmissionEVP() {}
127 private:
128 static const Real exact[20];
129 void matlab_matrix_entry(concepts::Matrix<Real>& m,
130 uint i, uint j, Real entry);
131 };
132
133} // namespace test
134
135#endif // testConstrained_hh
void testInexactInv()
Test with inexact inverse iteration.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
GolubExampleSum()
Constructor. Sets up three matrices a, b and c.
GolubExample()
Constructor. Sets up three matrices a, b and c.
MaxwellTransmissionEVP()
Constructor. Sets up three matrices a, b and c.
double Real
Definition typedefs.hh:39