3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-25 23:19:32 +00:00

init m_e_matrix on terms instead of the tableau

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2024-10-21 14:11:07 -07:00 committed by Lev Nachmanson
parent 392c24a145
commit 5f5f1d4fd1
4 changed files with 36 additions and 25 deletions

View file

@ -45,7 +45,14 @@ typedef vector<column_cell> column_strip;
template <typename T>
using row_strip = vector<row_cell<T>>;
mpq get_denominators_lcm(const row_strip<mpq> & row);
template <typename K> mpq get_denominators_lcm(const K & row) {
mpq r = mpq(1);
for (auto & c : row)
r = lcm(r, denominator(c.coeff()));
return r;
}
template <typename T>
std::ostream& operator<<(std::ostream& out, const row_strip<T>& r) {