mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Fix build breakage when LAPACK support is disabled.
Parts of dense_cholesky.h/cc need to be enabled/disabled using CERES_NO_LAPACK. Fixes https://github.com/ceres-solver/ceres-solver/issues/744 Change-Id: Id555e16723e31580eaa81562dba8d745a9210b0a
This commit is contained in:
@@ -118,6 +118,7 @@ LinearSolverTerminationType EigenDenseCholesky::Solve(const double* rhs,
|
||||
return LINEAR_SOLVER_SUCCESS;
|
||||
}
|
||||
|
||||
#ifndef CERES_NO_LAPACK
|
||||
LinearSolverTerminationType LAPACKDenseCholesky::Factorize(
|
||||
int num_cols, double* lhs, std::string* message) {
|
||||
lhs_ = lhs;
|
||||
@@ -171,5 +172,7 @@ LinearSolverTerminationType LAPACKDenseCholesky::Solve(const double* rhs,
|
||||
return termination_type_;
|
||||
}
|
||||
|
||||
#endif // CERES_NO_LAPACK
|
||||
|
||||
} // namespace internal
|
||||
} // namespace ceres
|
||||
|
||||
@@ -110,6 +110,7 @@ class CERES_EXPORT_INTERNAL EigenDenseCholesky : public DenseCholesky {
|
||||
std::unique_ptr<LLTType> llt_;
|
||||
};
|
||||
|
||||
#ifndef CERES_NO_LAPACK
|
||||
class CERES_EXPORT_INTERNAL LAPACKDenseCholesky : public DenseCholesky {
|
||||
public:
|
||||
~LAPACKDenseCholesky() override = default;
|
||||
@@ -126,6 +127,7 @@ class CERES_EXPORT_INTERNAL LAPACKDenseCholesky : public DenseCholesky {
|
||||
int num_cols_ = -1;
|
||||
LinearSolverTerminationType termination_type_ = LINEAR_SOLVER_FATAL_ERROR;
|
||||
};
|
||||
#endif // CERES_NO_LAPACK
|
||||
|
||||
} // namespace internal
|
||||
} // namespace ceres
|
||||
|
||||
Reference in New Issue
Block a user