sparseMatrix.hh

Go to the documentation of this file.
1 
7 #ifndef sparseMatrixTest_hh
8 #define sparseMatrixTest_hh
9 
10 #include "basics/testcase.hh"
11 #include "space/space.hh"
12 #include "operator/submatrix.hh"
13 
14 using concepts::Real;
15 
16 namespace test {
17 
22  class SparseMatrixTest : public TestCase {
23  public:
24  SparseMatrixTest() : spc3(3), spc4(4) {}
25  virtual ~SparseMatrixTest() {}
26  virtual void run();
27 
29 
30  void testConstr();
33  void testAppl();
37  void testAddInto();
39  void testMult();
43  void testCompress();
45  void testCRS_R();
46  void testCRS_C();
50  void testSubMatrix();
52  void testResize();
54  private:
56  };
57 
58 } // namespace test
59 
60 #endif // sparseMatrixTest_hh
void testAppl()
Tests the application operator.
void testResize()
Test resizing.
Base class for tests.
Definition: testcase.hh:92
void testCompress()
Tests compressing a matrix.
void testSubMatrix()
Tests submatrices.
concepts::DummySpace< concepts::Real > spc3
Tests the constructors.
Definition: sparseMatrix.hh:55
Unit tests.
Definition: testcase.hh:66
void testCCS_R_Large()
Tests the constructors.
concepts::DummySpace< concepts::Real > spc4
Tests the constructors.
Definition: sparseMatrix.hh:55
void testTranspMult()
Tests the transposed multiplication operator.
void testMult()
Tests multiplication of two matrices.
void testCRS_R()
Tests conversion to CRS and CCS format.
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void testConstr()
Tests the constructors.
void testCRS_C()
Tests the constructors.
void testSymmetrize()
Tests symmetrization of a matric.
Test sparse matrix class SparseMatrix.
Definition: sparseMatrix.hh:22
void testAddInto()
Tests the addition of two matrices.
void testCRS_R_Large()
Tests the constructors.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich