3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

sparse_matrix iterators

This commit is contained in:
Jakob Rath 2022-08-01 12:17:21 +02:00 committed by Nikolaj Bjorner
parent 6eae27ffad
commit 9275d1e57a
4 changed files with 22 additions and 7 deletions

View file

@ -98,7 +98,7 @@ namespace simplex {
if (!t1.is_dead()) {
if (i != j) {
_row_entry & t2 = m_entries[j];
t2.m_coeff.swap(t1.m_coeff);
m.swap(t2.m_coeff, t1.m_coeff);
t2.m_var = t1.m_var;
t2.m_col_idx = t1.m_col_idx;
SASSERT(!t2.is_dead());