summaryrefslogtreecommitdiff
path: root/src/theory/arith/row_vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/arith/row_vector.h')
-rw-r--r--src/theory/arith/row_vector.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/theory/arith/row_vector.h b/src/theory/arith/row_vector.h
index efb64d1c7..a967f8d68 100644
--- a/src/theory/arith/row_vector.h
+++ b/src/theory/arith/row_vector.h
@@ -73,13 +73,16 @@ protected:
public:
- //RowVector() : d_entries() {}
-
RowVector(const std::vector< ArithVar >& variables,
const std::vector< Rational >& coefficients,
std::vector<uint32_t>& counts);
+ /** Returns the number of nonzero variables in the vector. */
+ uint32_t size() const {
+ return d_entries.size();
+ }
+
//Iterates over the nonzero entries in the Vector
NonZeroIterator beginNonZero() const { return d_entries.begin(); }
NonZeroIterator endNonZero() const { return d_entries.end(); }
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback