mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Add Apple's Accelerate framework as a sparse linear algebra library.
- Currently DynamicSparseNormalCholeskySolver is unsupported for Accelerate. Change-Id: I03b5a86bb22fef249c4aecd48947a613e8eff7a5
This commit is contained in:
@@ -568,6 +568,12 @@ bool ReorderProgramForSparseNormalCholesky(
|
||||
OrderingForSparseNormalCholeskyUsingCXSparse(
|
||||
*tsm_block_jacobian_transpose,
|
||||
&ordering[0]);
|
||||
} else if (sparse_linear_algebra_library_type == ACCELERATE_SPARSE) {
|
||||
// TODO(alex): Investigate what analysis on pre-ordered matrices
|
||||
// Accelerate supports, but for now disable.
|
||||
// https://github.com/ceres-solver/ceres-solver/issues/394.
|
||||
return true;
|
||||
|
||||
} else if (sparse_linear_algebra_library_type == EIGEN_SPARSE) {
|
||||
#if EIGEN_VERSION_AT_LEAST(3, 2, 2)
|
||||
OrderingForSparseNormalCholeskyUsingEigenSparse(
|
||||
|
||||
Reference in New Issue
Block a user