diff options
author | Tim King <taking@cs.nyu.edu> | 2011-02-18 23:28:19 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2011-02-18 23:28:19 +0000 |
commit | 005066130a774c9e4aa838ca500d5fd3137909be (patch) | |
tree | 00f30cf01943464435f9ae50ddfec53822617bd8 /src/theory/arith/row_vector.h | |
parent | b2eba85abe17f3cb661b537d4ac6c55c2e222c65 (diff) |
Changes:
- ArithVar is no longer an attribute
- RowVector's destructor reduces the row count of its variables upon.
- Tableau's destructor now free its rows instead of leaking memory.
- Added ability to convert ReducedRowVectors into equivalent Nodes.
- getValue() should work again.
Diffstat (limited to 'src/theory/arith/row_vector.h')
-rw-r--r-- | src/theory/arith/row_vector.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/theory/arith/row_vector.h b/src/theory/arith/row_vector.h index 05ceeb986..2b48564a4 100644 --- a/src/theory/arith/row_vector.h +++ b/src/theory/arith/row_vector.h @@ -89,6 +89,7 @@ public: const std::vector< Rational >& coefficients, std::vector<uint32_t>& counts); + ~RowVector(); /** Returns the number of nonzero variables in the vector. */ uint32_t size() const { @@ -195,6 +196,13 @@ public: void pivot(ArithVar x_j); void substitute(const ReducedRowVector& other); + + /** + * Returns the reduced row as an equality with + * the basic variable on the lhs equal to the sum of the non-basics variables. + * The mapped from ArithVars to Nodes is specificied by map. + */ + Node asEquality(const ArithVarToNodeMap& map) const; }; /* class ReducedRowVector */ |