release/4.3a0
Yong-Dian Jian 2010-11-29 06:20:34 +00:00
parent fd381e97bc
commit 6fec4aa73e
1 changed files with 10 additions and 5 deletions

View File

@ -17,10 +17,12 @@ namespace gtsam {
public: public:
typedef enum { typedef boost::shared_ptr<IterativeOptimizationParameters> shared_ptr ;
SILENT,
ERROR, typedef enum {
} verbosityLevel; SILENT,
ERROR,
} verbosityLevel;
public: public:
int maxIterations_; int maxIterations_;
@ -29,13 +31,16 @@ namespace gtsam {
double epsilon_abs_; // absolute error double epsilon_abs_; // absolute error
verbosityLevel verbosity_; verbosityLevel verbosity_;
// specialize for some solvers // specialize for spcg solver
typedef size_t Index; typedef size_t Index;
typedef std::vector<Index> Spec ; typedef std::vector<Index> Spec ;
typedef boost::shared_ptr<Spec> sharedSpec ; typedef boost::shared_ptr<Spec> sharedSpec ;
sharedSpec reduce_spec_ ; sharedSpec reduce_spec_ ;
sharedSpec skeleton_spec_ ; sharedSpec skeleton_spec_ ;
// specialize for spcg solver 2
public: public:
IterativeOptimizationParameters(): IterativeOptimizationParameters():
maxIterations_(100), maxIterations_(100),