diff options
Diffstat (limited to 'internal/ceres/covariance_test.cc')
-rw-r--r-- | internal/ceres/covariance_test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/ceres/covariance_test.cc b/internal/ceres/covariance_test.cc index e7d25a1..f3a5051 100644 --- a/internal/ceres/covariance_test.cc +++ b/internal/ceres/covariance_test.cc @@ -499,6 +499,9 @@ TEST_F(CovarianceTest, ConstantParameterBlock) { #ifndef CERES_NO_SUITESPARSE options.algorithm_type = SPARSE_CHOLESKY; ComputeAndCompareCovarianceBlocks(options, expected_covariance); + + options.algorithm_type = SPARSE_QR; + ComputeAndCompareCovarianceBlocks(options, expected_covariance); #endif options.algorithm_type = DENSE_SVD; @@ -552,6 +555,9 @@ TEST_F(CovarianceTest, LocalParameterization) { #ifndef CERES_NO_SUITESPARSE options.algorithm_type = SPARSE_CHOLESKY; ComputeAndCompareCovarianceBlocks(options, expected_covariance); + + options.algorithm_type = SPARSE_QR; + ComputeAndCompareCovarianceBlocks(options, expected_covariance); #endif options.algorithm_type = DENSE_SVD; @@ -776,6 +782,7 @@ class LargeScaleCovarianceTest : public ::testing::Test { TEST_F(LargeScaleCovarianceTest, Parallel) { ComputeAndCompare(SPARSE_CHOLESKY, 4); + ComputeAndCompare(SPARSE_QR, 4); } #endif // !defined(CERES_NO_SUITESPARSE) && defined(CERES_USE_OPENMP) |