mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Default to any other sparse libraries over Accelerate
- Accelerate currently does not support dynamic sparsity, whereas the other sparse linear algebra libraries do (outstanding issue to update) - Previously we preferred Accelerate to all but SuiteSparse if it was available, which breaks the dynamic_sparsity_test if SuiteSparse is *not* available (even if others are) as Accelerate does not support dynamic sparsity. Change-Id: Ibc2dd2f14f83cffbecca38097d02bb2188aaaa05
This commit is contained in:
@@ -358,12 +358,12 @@ class CERES_EXPORT Solver {
|
||||
SparseLinearAlgebraLibraryType sparse_linear_algebra_library_type =
|
||||
#if !defined(CERES_NO_SUITESPARSE)
|
||||
SUITE_SPARSE;
|
||||
#elif !defined(CERES_NO_ACCELERATE_SPARSE)
|
||||
ACCELERATE_SPARSE;
|
||||
#elif !defined(CERES_NO_CXSPARSE)
|
||||
CX_SPARSE;
|
||||
#elif defined(CERES_USE_EIGEN_SPARSE)
|
||||
EIGEN_SPARSE;
|
||||
#elif !defined(CERES_NO_CXSPARSE)
|
||||
CX_SPARSE;
|
||||
#elif !defined(CERES_NO_ACCELERATE_SPARSE)
|
||||
ACCELERATE_SPARSE;
|
||||
#else
|
||||
NO_SPARSE;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user