Class documentation of Concepts

Loading...
Searching...
No Matches
compositions.hh
Go to the documentation of this file.
1
7#ifndef testCompositions_hh
8#define testCompositions_hh
9
10#include <memory>
11#include "basics/testcase.hh"
12#include "operator/sparseMatrix.hh"
14#include "sparseqr/driver.hh"
16
17namespace test {
18
19 using concepts::Real;
20
21 // *************************************************** CompositionTestBase **
22
24 protected:
25 template<typename F>
26 void compare(const concepts::Matrix<F>& a, concepts::Operator<F>& b);
27 };
28
29 // ****************************************************** CompositionsTest **
30
39 public:
42 virtual ~CompositionsTest() {}
43 virtual void run();
44
46
47
48 void test1();
50 void test2();
52 void test3();
54 void test4();
56 void test5();
58 private:
59 //concepts::DummySpace<Real> spc;
60 uint dim;
62 };
63
64 // ************************************************** MoreCompositionsTest **
65
74 public:
77 virtual ~MoreCompositionsTest() {}
78 virtual void run();
79
81
82
95 private:
96// concepts::DummySpace<Real> spc;
97 uint dim;
99 };
100
101 // ************************************************** DeepCompositionsTest **
102
109 public:
112 virtual ~DeepCompositionsTest() {}
113 virtual void run();
114 void createSparseQR();
115
117
118 void testCompositions();
120 private:
123 std::unique_ptr<sparseqr::Driver> qr;
125 std::unique_ptr<concepts::Permutation<Real> > Prt;
128 std::unique_ptr<concepts::Compose<Real> > PrQgt, QgPrt, restrPrQgt,
129 QgPrtext, restrPrQgtA, restrPrQgtAQgPrtext, restrPrQgtM,
130 restrPrQgtMQgPrtext;
131 };
132
133}
134
135#endif // testCompositions_hh
void test3()
Tests a+b*c.
void test5()
Tests a*b-c.
void test2()
Tests a*(b+c)
void test4()
Tests a*b+c.
CompositionsTest()
Constructor. Sets up three matrices a, b and c.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void test1()
Tests (a+b)*c.
DeepCompositionsTest()
Constructor. Sets up a matrix a.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
MoreCompositionsTest()
Constructor. Sets up a matrix a.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
double Real
Definition typedefs.hh:39