mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Ensure consistent visibility attributes
Change-Id: Ib80d655a3601a716956bbd2b977d295a809307c1
This commit is contained in:
@@ -60,7 +60,8 @@ class ConjugateGradientsLinearOperator {
|
||||
|
||||
// Adapter class that makes LinearOperator appear like an instance of
|
||||
// ConjugateGradientsLinearOperator.
|
||||
class LinearOperatorAdapter : public ConjugateGradientsLinearOperator<Vector> {
|
||||
class CERES_NO_EXPORT LinearOperatorAdapter
|
||||
: public ConjugateGradientsLinearOperator<Vector> {
|
||||
public:
|
||||
LinearOperatorAdapter(LinearOperator& linear_operator)
|
||||
: linear_operator_(linear_operator) {}
|
||||
@@ -75,7 +76,7 @@ class LinearOperatorAdapter : public ConjugateGradientsLinearOperator<Vector> {
|
||||
|
||||
// Options to control the ConjugateGradientsSolver. For detailed documentation
|
||||
// for each of these options see linear_solver.h
|
||||
struct ConjugateGradientsSolverOptions {
|
||||
struct CERES_NO_EXPORT ConjugateGradientsSolverOptions {
|
||||
int min_num_iterations = 1;
|
||||
int max_num_iterations = 1;
|
||||
int residual_reset_period = 10;
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
|
||||
namespace ceres::internal {
|
||||
|
||||
namespace {
|
||||
|
||||
template <typename Solver>
|
||||
class EigenSparseCholeskyTemplate final : public SparseCholesky {
|
||||
public:
|
||||
@@ -146,6 +148,8 @@ class EigenSparseCholeskyTemplate final : public SparseCholesky {
|
||||
Solver solver_;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
std::unique_ptr<SparseCholesky> EigenSparseCholesky::Create(
|
||||
const OrderingType ordering_type) {
|
||||
using WithAMDOrdering = Eigen::SimplicialLDLT<Eigen::SparseMatrix<double>,
|
||||
|
||||
Reference in New Issue
Block a user