You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
operator
testsuite
cgTest.hh
Go to the documentation of this file.
1
7
#ifndef cgTest_hh
8
#define cgTest_hh
9
10
#include "
basics/testcase.hh
"
11
#include "
space/space.hh
"
12
13
using
concepts::Real
;
14
15
namespace
test
{
16
21
class
CgTest
:
public
TestCase
{
22
public
:
23
CgTest
() : spc(5) {}
24
virtual
~CgTest
() {}
25
virtual
void
run
();
26
28
29
30
void
testNormal
(
concepts::Matrix<Real>
& m,
31
concepts::Vector<Real>
& rhs,
32
Real res[5]);
34
void
testPrecond
(
concepts::Matrix<Real>
& m,
35
concepts::Vector<Real>
& rhs,
36
Real res[5]);
38
private
:
39
concepts::DummySpace<concepts::Real>
spc;
40
};
41
42
}
// namespace test
43
44
#endif
// cgTest_hh
concepts::DummySpace
Definition
space.hh:373
concepts::Matrix
Definition
matrix.hh:39
concepts::Vector
Definition
vector.hh:39
test::CgTest
Definition
cgTest.hh:21
test::CgTest::run
virtual void run()
Runs the tests. Must be overwritten by the specialization.
test::CgTest::testPrecond
void testPrecond(concepts::Matrix< Real > &m, concepts::Vector< Real > &rhs, Real res[5])
With diagonal preconditioner.
test::CgTest::testNormal
void testNormal(concepts::Matrix< Real > &m, concepts::Vector< Real > &rhs, Real res[5])
Without preconditioning.
test::TestCase
Definition
testcase.hh:92
concepts::Real
double Real
Definition
typedefs.hh:39
test
Definition
testcase.hh:66
space.hh
testcase.hh
Generated on Wed Sep 13 2023 21:06:23 for Concepts by
1.9.8