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:
Alex Stewart
2018-06-23 20:17:34 +01:00
parent 357288008e
commit 8f41ca6abc
44 changed files with 1835 additions and 32 deletions
+6
View File
@@ -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(