Commit 99396cd6 authored by David Bommes's avatar David Bommes

added convenience functions

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@295 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent 21a8939e
......@@ -40,13 +40,14 @@ public:
typedef Eigen::Triplet<double> Triplet;
/// Default constructor
LeastSquaresProblem(const int _n_unknowns) :n_(_n_unknowns), x_(_n_unknowns, 0.0) {}
LeastSquaresProblem(const int _n_unknowns = 0) :n_(_n_unknowns), x_(_n_unknowns, 0.0) {}
/// Destructor
~LeastSquaresProblem() {}
void add_term(NConstraintInterface* _term);
void clear_terms() {terms_.clear();}
double eval_term(const unsigned int _i, const double* _x);
double eval_term(const unsigned int _i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment