Class documentation of Concepts

Loading...
Searching...
No Matches
vectorTest.hh
Go to the documentation of this file.
1
7#ifndef vectorTest_hh
8#define vectorTest_hh
9
10#include "basics/testcase.hh"
11#include "space/space.hh"
12
13namespace concepts {
14 template<typename F>
15 class Vector;
16}
17
18using concepts::Real;
19using concepts::Cmplx;
20
21namespace test {
22
27 class VectorTest : public TestCase {
28 public:
29 VectorTest() : spc(10) {}
30 virtual ~VectorTest() {}
31 virtual void run();
32
34
35
37 void testl1normC(const concepts::Vector<Cmplx>& v);
40 void testl2normC(const concepts::Vector<Cmplx>& v);
43 void testmaxC(const concepts::Vector<Cmplx>& v);
46 void testreadwriteC(const concepts::Vector<Cmplx>& v);
51 const concepts::Vector<Real>& w);
53 void testResize();
55 private:
57 };
58
59} // namespace test
60
61#endif // vectorTest_hh
void testl1norm(const concepts::Vector< Real > &v)
Tests l1 norm.
void testmax(const concepts::Vector< Real > &v)
Tests linfty norm.
void testreadwrite(const concepts::Vector< Real > &v)
Tests read and write operations (with files)
void testResize()
Test resizing the vector.
void testl2norm(const concepts::Vector< Real > &v)
Tests l2 norm.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void testsplit(const concepts::Vector< Cmplx > &v)
Test splitting of complex vector into real vectors.
void testconversion(const concepts::Vector< Real > &v, const concepts::Vector< Real > &w)
Test conversion: 2 real vectors --> 1 complex vector.
double Real
Definition typedefs.hh:39
std::complex< Real > Cmplx
Type for a complex number. It also depends on the setting of Real.
Definition typedefs.hh:42