3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

Implement add, sub, mul, div, inv, neg

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-01-05 16:32:35 -08:00
parent 322d355290
commit 3ffda25350
4 changed files with 547 additions and 117 deletions

View file

@ -175,6 +175,7 @@ public:
return m_data + size();
}
T const * c_ptr() const { return m_data; }
T * c_ptr() { return m_data; }
void swap(array & other) {

View file

@ -78,11 +78,7 @@ public:
return m_buffer.c_ptr();
}
T const * operator[](unsigned idx) const {
return m_buffer[idx];
}
T * operator[](unsigned idx) {
T * operator[](unsigned idx) const {
return m_buffer[idx];
}
@ -144,6 +140,7 @@ public:
return *this;
reset();
append(other);
return *this;
}
};