mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
change lar_terms to use column indices
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3313590b95
commit
c2e5cd78c8
13 changed files with 88 additions and 103 deletions
|
@ -357,14 +357,14 @@ public:
|
|||
// we use the form -it + 1 = 0
|
||||
m_work_vector.set_value(one_of_type<T>(), bj);
|
||||
for (auto p : row) {
|
||||
m_work_vector.set_value(-p.coeff(), p.var().index());
|
||||
m_work_vector.set_value(-p.coeff(), p.column().index());
|
||||
// but take care of the basis 1 later
|
||||
}
|
||||
|
||||
// now iterate with pivoting
|
||||
fill_last_row_with_pivoting_loop_block(bj, basis_heading);
|
||||
for (auto p : row) {
|
||||
fill_last_row_with_pivoting_loop_block(p.var().index(), basis_heading);
|
||||
fill_last_row_with_pivoting_loop_block(p.column().index(), basis_heading);
|
||||
}
|
||||
lp_assert(m_work_vector.is_OK());
|
||||
unsigned last_row = row_count() - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue