mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix dynamic_sparsity_test.
Skip the test in dynamic_sparsity_test when there are no sparse linear algebra libraries available. Also fix a minor typo in version_history.rst Change-Id: Ie7cc14e655c58b6bd9625ce9f9025f94d0624d2d
This commit is contained in:
@@ -90,7 +90,7 @@ Bug Fixes & Minor Changes
|
||||
#. Fix detection of CMake-built glog on Windows. (Alex Stewart)
|
||||
#. Add additional search paths for glog & Eigen on Windows. (Alex
|
||||
Stewart)
|
||||
#. Various minor grammar and bug fixes to the documetation (Sameer
|
||||
#. Various minor grammar and bug fixes to the documentation (Sameer
|
||||
Agarwal, Alex Stewart, William Rucklidge)
|
||||
|
||||
|
||||
|
||||
@@ -358,6 +358,13 @@ class EuclideanDistanceFunctor {
|
||||
};
|
||||
|
||||
TEST(DynamicSparsity, StaticAndDynamicSparsityProduceSameSolution) {
|
||||
// Skip test if there is no sparse linear algebra library.
|
||||
if (!IsSparseLinearAlgebraLibraryTypeAvailable(SUITE_SPARSE) &&
|
||||
!IsSparseLinearAlgebraLibraryTypeAvailable(CX_SPARSE) &&
|
||||
!IsSparseLinearAlgebraLibraryTypeAvailable(EIGEN_SPARSE)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Problem configuration.
|
||||
const int num_segments = 151;
|
||||
const double regularization_weight = 1e-2;
|
||||
|
||||
Reference in New Issue
Block a user