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