00001 00006 #ifndef sparseMatrixTest_hh 00007 #define sparseMatrixTest_hh 00008 00009 #include "basics/testcase.hh" 00010 #include "space/space.hh" 00011 #include "operator/submatrix.hh" 00012 00013 using concepts::Real; 00014 00015 namespace test { 00016 00021 class SparseMatrixTest : public TestCase { 00022 public: 00023 SparseMatrixTest() : spc3(3), spc4(4) {} 00024 virtual ~SparseMatrixTest() {} 00025 virtual void run(); 00026 00028 00029 00030 void testConstr(); 00032 void testAppl(); 00034 void testTranspMult(); 00036 void testAddInto(); 00038 void testMult(); 00040 void testSymmetrize(); 00042 void testCompress(); 00044 void testCRS_R(); 00045 void testCRS_C(); 00046 void testCRS_R_Large(); 00047 void testCCS_R_Large(); 00049 void testSubMatrix(); 00051 private: 00052 concepts::DummySpace<concepts::Real> spc3, spc4; 00053 }; 00054 00055 } // namespace test 00056 00057 #endif // sparseMatrixTest_hh