make print more comprehensible

release/4.3a0
Yong-Dian Jian 2012-09-04 04:58:38 +00:00
parent 0f6ffcd4b2
commit 9ac2ae5755
1 changed files with 2 additions and 3 deletions

View File

@ -49,10 +49,9 @@ namespace gtsam {
void setVerbosity(const std::string &s) ;
void print() const {
const std::string kernelStr[1] = {"cg"};
std::cout << "IterativeOptimizationParameters: "
<< "kernel = " << kernelStr[kernel_]
<< ", verbosity = " << verbosity_ << std::endl;
<< "kernel = " << kernelTranslator(kernel_)
<< ", verbosity = " << verbosityTranslator(verbosity_) << std::endl;
}
static Kernel kernelTranslator(const std::string &s);