Skip to content

Commit

Permalink
add ability to multiply term
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jan 22, 2024
1 parent 0ebd8d6 commit 839b710
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/math/lp/lar_term.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ class lar_term {
}
return ret;
}

lar_term& operator*=(mpq const& k) {
for (auto & t : m_coeffs)
t.m_value *= k;
return *this;
}

void clear() {
m_coeffs.reset();
Expand Down

0 comments on commit 839b710

Please sign in to comment.