add a struct
parent
17513a07d5
commit
0f70bb2939
|
@ -9,20 +9,22 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
|
#include <gtsam/linear/VectorValues.h>
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
|
|
||||||
// a container for all related parameters
|
// a container for all related parameters
|
||||||
struct IterativeOptimizationParameters {
|
struct IterativeOptimizationParameters {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef boost::shared_ptr<IterativeOptimizationParameters> shared_ptr ;
|
typedef boost::shared_ptr<IterativeOptimizationParameters> shared_ptr ;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SILENT,
|
SILENT,
|
||||||
ERROR,
|
ERROR,
|
||||||
} verbosityLevel;
|
} verbosityLevel;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int maxIterations_;
|
int maxIterations_;
|
||||||
|
@ -31,15 +33,12 @@ namespace gtsam {
|
||||||
double epsilon_abs_; // absolute error
|
double epsilon_abs_; // absolute error
|
||||||
verbosityLevel verbosity_;
|
verbosityLevel verbosity_;
|
||||||
|
|
||||||
// specialize for spcg solver
|
// 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_ ;
|
DimSpec::shared_ptr reduce_spec_ ;
|
||||||
sharedSpec skeleton_spec_ ;
|
DimSpec::shared_ptr skeleton_spec_ ;
|
||||||
|
|
||||||
// specialize for spcg solver 2
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IterativeOptimizationParameters():
|
IterativeOptimizationParameters():
|
||||||
|
|
Loading…
Reference in New Issue