Added missing clone for MATLAB wrapper

release/4.3a0
Frank Dellaert 2019-03-19 10:30:30 -04:00
parent 90f5dae3d0
commit 5af2256277
1 changed files with 9 additions and 0 deletions

View File

@ -142,6 +142,15 @@ public:
void setLogFile(const std::string& s) { logFile = s; }
void setVerbosityLM(const std::string& s) { verbosityLM = verbosityLMTranslator(s);}
// @}
/// @name Clone
/// @{
/// @return a deep copy of this object
boost::shared_ptr<NonlinearOptimizerParams> clone() const {
return boost::shared_ptr<NonlinearOptimizerParams>(new LevenbergMarquardtParams(*this));
}
/// @}
};
}