Ensure consistent visibility attributes

Change-Id: Ib80d655a3601a716956bbd2b977d295a809307c1
This commit is contained in:
Sergiu Deitsch
2025-09-28 08:35:41 +02:00
parent 6f00e41111
commit d4e3ba3173
2 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -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;
+4
View File
@@ -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>,