TestERowMatrix.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * NICE-Core - efficient algebra and computer vision methods
  3. * - libbasicvector - A simple vector library
  4. * See file License for license information.
  5. */
  6. #ifndef _TESTEMATRIX_H
  7. #define _TESTEMATRIX_H
  8. #include <cppunit/extensions/HelperMacros.h>
  9. /**
  10. * CppUnit-Testcase.
  11. * Tests for Image and ColorImage
  12. */
  13. class TestERowMatrix : public CppUnit::TestFixture {
  14. CPPUNIT_TEST_SUITE( TestERowMatrix );
  15. CPPUNIT_TEST( testAssignment );
  16. CPPUNIT_TEST( testAccess );
  17. CPPUNIT_TEST( testConst );
  18. CPPUNIT_TEST( testCopy );
  19. CPPUNIT_TEST( testExternal );
  20. CPPUNIT_TEST( testArithmetics );
  21. CPPUNIT_TEST( testRangeChecks );
  22. CPPUNIT_TEST( testEqual );
  23. CPPUNIT_TEST( testTranspose );
  24. CPPUNIT_TEST( testMultiply );
  25. CPPUNIT_TEST( testDet );
  26. CPPUNIT_TEST( testEigenValues );
  27. CPPUNIT_TEST_SUITE_END();
  28. private:
  29. public:
  30. void setUp();
  31. void tearDown();
  32. /**
  33. * Test VectorT::operator[]()
  34. */
  35. void testAccess();
  36. /**
  37. * Test VectorT::operator[]()
  38. */
  39. void testConst();
  40. /**
  41. * Test copying.
  42. */
  43. void testCopy();
  44. /**
  45. * Test external storage.
  46. */
  47. void testExternal();
  48. /**
  49. * Test operator=.
  50. */
  51. void testAssignment();
  52. /**
  53. * Test operator+= etc.
  54. */
  55. void testArithmetics();
  56. /**
  57. * Test ranged checked subclasses.
  58. */
  59. void testRangeChecks();
  60. /**
  61. * Test == and != operators
  62. */
  63. void testEqual();
  64. void testTranspose();
  65. void testMultiply();
  66. void testDet();
  67. void testEigenValues();
  68. };
  69. #endif // _TESTEMATRIX_H