mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
update of the testing framework:
replaced the QTestLib framework my custom macros and a (optional) custom script to run the tests from ctest.
This commit is contained in:
@@ -23,11 +23,8 @@
|
||||
// Eigen. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include "main.h"
|
||||
|
||||
#include <Eigen/LU>
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
template<typename MatrixType> void nullDeterminant(const MatrixType& m)
|
||||
{
|
||||
/* this test covers the following files:
|
||||
@@ -69,15 +66,13 @@ template<typename MatrixType> void nullDeterminant(const MatrixType& m)
|
||||
VERIFY(!notInvertibleCovarianceMatrix.inverse().exists());
|
||||
}
|
||||
|
||||
void EigenTest::testDeterminant()
|
||||
void test_determinant()
|
||||
{
|
||||
for(int i = 0; i < m_repeat; i++) {
|
||||
nullDeterminant(Matrix<float, 30, 3>());
|
||||
nullDeterminant(Matrix<double, 30, 3>());
|
||||
nullDeterminant(Matrix<float, 20, 4>());
|
||||
nullDeterminant(Matrix<double, 20, 4>());
|
||||
// nullDeterminant(MatrixXd(20,4));
|
||||
for(int i = 0; i < g_repeat; i++) {
|
||||
CALL_SUBTEST( nullDeterminant(Matrix<float, 30, 3>()) );
|
||||
CALL_SUBTEST( nullDeterminant(Matrix<double, 30, 3>()) );
|
||||
CALL_SUBTEST( nullDeterminant(Matrix<float, 20, 4>()) );
|
||||
CALL_SUBTEST( nullDeterminant(Matrix<double, 20, 4>()) );
|
||||
// CALL_SUBTEST( nullDeterminant(MatrixXd(20,4));
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Eigen
|
||||
|
||||
Reference in New Issue
Block a user