make the print message with consistent format
parent
9ce9231e14
commit
392ca3a84d
4
gtsam.h
4
gtsam.h
|
@ -1364,13 +1364,13 @@ virtual class ConjugateGradientParameters : gtsam::IterativeOptimizationParamete
|
|||
void setReset(size_t value);
|
||||
void setEpsilon_rel(double value);
|
||||
void setEpsilon_abs(double value);
|
||||
void print(string s);
|
||||
void print();
|
||||
};
|
||||
|
||||
#include <gtsam/linear/SubgraphSolver.h>
|
||||
virtual class SubgraphSolverParameters : gtsam::ConjugateGradientParameters {
|
||||
SubgraphSolverParameters();
|
||||
void print(string s) const;
|
||||
void print() const;
|
||||
};
|
||||
|
||||
class SubgraphSolver {
|
||||
|
|
|
@ -61,14 +61,14 @@ public:
|
|||
inline void setEpsilon_rel(double value) { epsilon_rel_ = value; }
|
||||
inline void setEpsilon_abs(double value) { epsilon_abs_ = value; }
|
||||
|
||||
virtual void print(const std::string &s="") const {
|
||||
virtual void print() const {
|
||||
Base::print();
|
||||
std::cout << "ConjugateGradientParameters" << std::endl
|
||||
<< "minIter: " << minIterations_ << std::endl
|
||||
<< "maxIter: " << maxIterations_ << std::endl
|
||||
<< "resetIter: " << reset_ << std::endl
|
||||
<< "eps_rel: " << epsilon_rel_ << std::endl
|
||||
<< "eps_abs: " << epsilon_abs_ << std::endl;
|
||||
<< "minIter: " << minIterations_ << std::endl
|
||||
<< "maxIter: " << maxIterations_ << std::endl
|
||||
<< "resetIter: " << reset_ << std::endl
|
||||
<< "eps_rel: " << epsilon_rel_ << std::endl
|
||||
<< "eps_abs: " << epsilon_abs_ << std::endl;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -48,11 +48,10 @@ namespace gtsam {
|
|||
void setKernel(const std::string &s) ;
|
||||
void setVerbosity(const std::string &s) ;
|
||||
|
||||
void print() const {
|
||||
virtual void print() const {
|
||||
std::cout << "IterativeOptimizationParameters" << std::endl
|
||||
<< "kernel: " << kernelTranslator(kernel_) << std::endl
|
||||
<< "verbosity: " << verbosityTranslator(verbosity_) << std::endl
|
||||
<< std::endl;
|
||||
<< "kernel: " << kernelTranslator(kernel_) << std::endl
|
||||
<< "verbosity: " << verbosityTranslator(verbosity_) << std::endl;
|
||||
}
|
||||
|
||||
static Kernel kernelTranslator(const std::string &s);
|
||||
|
|
|
@ -23,7 +23,7 @@ class SubgraphSolverParameters : public ConjugateGradientParameters {
|
|||
public:
|
||||
typedef ConjugateGradientParameters Base;
|
||||
SubgraphSolverParameters() : Base() {}
|
||||
virtual void print(const std::string &s="") const { Base::print(s); }
|
||||
virtual void print() const { Base::print(); }
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue