1 #ifndef TESTCHOLESKYDECOMPOSITION_H
2 #define TESTCHOLESKYDECOMPOSITION_H
4 #include <cppunit/TestFixture.h>
5 #include <cppunit/extensions/HelperMacros.h>
6 #include <LinearMath/btMatrix3x3.h>
8 class TestCholeskyDecomposition : public CppUnit::TestFixture
21 void testZeroMatrix();
22 void testIdentityMatrix();
23 void testPositiveDefiniteMatrix();
24 void testPositiveSemiDefiniteMatrix();
25 void testNegativeDefiniteMatrix();
27 CPPUNIT_TEST_SUITE(TestCholeskyDecomposition);
28 CPPUNIT_TEST(testZeroMatrix);
29 CPPUNIT_TEST(testIdentityMatrix);
30 CPPUNIT_TEST(testPositiveDefiniteMatrix);
31 CPPUNIT_TEST(testPositiveSemiDefiniteMatrix);
32 CPPUNIT_TEST(testNegativeDefiniteMatrix);
33 CPPUNIT_TEST_SUITE_END();
37 * Returns TRUE if the specified matrices are equal and FALSE otherwise.
39 * @param A - the first matrix to be tested.
40 * @param B - the second matrix to be tested.
42 * @return a boolean indicating whether the specified matrix is symmetric.
44 bool equal(const btMatrix3x3& A, const btMatrix3x3& B) const;
51 #endif // TESTCHOLESKYDECOMPOSITION_H