BiCGStabTest.hh

Go to the documentation of this file.
1 
7 #ifndef bicgstabTest_hh
8 #define bicgstabTest_hh
9 
10 #include "basics/testcase.hh"
11 #include "space/space.hh"
12 
13 namespace test {
14 
19  class BiCgStabTest : public TestCase {
20  public:
21  BiCgStabTest() : spc(5) {}
22  virtual ~BiCgStabTest() {}
23  virtual void run();
24 
26 
31 
33  template<class F>
36  F res[5]);
38  template<class F, class G>
41  concepts::Vector<F>& rhs, F res[5]);
43  private:
45  };
46 
47 } // namespace test
48 
49 #endif // bicgstabTest_hh
void testNormal(concepts::Matrix< F > &m, concepts::Vector< F > &rhs, F res[5])
Without preconditioning.
Test the iterative solver BiCGStab.
Definition: BiCGStabTest.hh:19
virtual void run()
Runs the tests. Must be overwritten by the specialization.
Base class for tests.
Definition: testcase.hh:92
virtual ~BiCgStabTest()
Definition: BiCGStabTest.hh:22
void testPrecond(concepts::Matrix< F > &m, concepts::Operator< G > &p, concepts::Operator< G > &pinv, concepts::Vector< F > &rhs, F res[5])
With diagonal preconditioner.
Unit tests.
Definition: testcase.hh:66
Abstract class for an operator.
Definition: compositions.hh:31
void sparseMatrixCmplx()
Without preconditioning.
void denseMatrixReal()
Without preconditioning.
concepts::DummySpace< concepts::Real > spc
Without preconditioning.
Definition: BiCGStabTest.hh:44
void sparseMatrixReal()
Without preconditioning.
void denseMatrixCmplx()
Without preconditioning.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich