We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58ab6cd commit 31f0511Copy full SHA for 31f0511
src/ncmult.jl
@@ -70,7 +70,7 @@ function multiplyvar(x::PolyVar{false}, v::Vector{PolyVar{false}}, z::Vector{Int
70
end
71
i -= 1
72
while i > 0 && v[i] != x
73
- if i > 1 && v[i] < v[i + 1]
+ if i < length(v) && v[i] < v[i + 1]
74
ndrop += 1
75
76
if ndrop >= droplim2 || (ndrop >= droplim1 && v[i] > x)
0 commit comments