From c9dbc705d783bd5fd76e6a8216a88c7270847c3b Mon Sep 17 00:00:00 2001 From: David Bommes Date: Sun, 8 Jan 2012 18:44:06 +0000 Subject: [PATCH] added resize function git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@111 1355f012-dd97-4b2f-ae87-10fa9f823a57 --- CoMISo/NSolver/LinearConstraint.cc | 5 +++++ CoMISo/NSolver/LinearConstraint.hh | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CoMISo/NSolver/LinearConstraint.cc b/CoMISo/NSolver/LinearConstraint.cc index a4b4113..3bb513f 100644 --- a/CoMISo/NSolver/LinearConstraint.cc +++ b/CoMISo/NSolver/LinearConstraint.cc @@ -44,6 +44,11 @@ int LinearConstraint::n_unknowns() return coeffs_.innerSize(); } +void LinearConstraint::resize(const unsigned int _n) +{ + coeffs_.m_size = _n; +} + const LinearConstraint::SVectorNC& LinearConstraint::coeffs() const { return coeffs_; diff --git a/CoMISo/NSolver/LinearConstraint.hh b/CoMISo/NSolver/LinearConstraint.hh index d3bb143..5099e84 100644 --- a/CoMISo/NSolver/LinearConstraint.hh +++ b/CoMISo/NSolver/LinearConstraint.hh @@ -53,6 +53,8 @@ public: virtual int n_unknowns(); + void resize(const unsigned int _n); + const SVectorNC& coeffs() const; SVectorNC& coeffs(); -- GitLab