21 #include <boost/algorithm/string.hpp> 31 cout <<
"ConjugateGradientParameters" << endl
32 <<
"minIter: " << minIterations_ << endl
33 <<
"maxIter: " << maxIterations_ << endl
34 <<
"resetIter: " << reset_ << endl
35 <<
"eps_rel: " << epsilon_rel_ << endl
36 <<
"eps_abs: " << epsilon_abs_ << endl;
43 case ConjugateGradientParameters::GTSAM: s =
"GTSAM" ;
break;
44 default: s =
"UNDEFINED" ;
break;
51 const std::string &src) {
52 std::string
s = src; boost::algorithm::to_upper(s);
53 if (s ==
"GTSAM")
return ConjugateGradientParameters::GTSAM;
56 return ConjugateGradientParameters::GTSAM;
void print(const Matrix &A, const string &s, ostream &stream)
Implementation of Conjugate Gradient solver for a linear system.
ofstream os("timeSchurFactors.csv")