Skip to content

Commit b3c8f6b

Browse files
committed
Bump MP to v0.5.8
1 parent 5ea1125 commit b3c8f6b

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ jobs:
3333
version: ${{ matrix.version }}
3434
arch: ${{ matrix.arch }}
3535
- uses: julia-actions/cache@v2
36-
- name: MP
37-
shell: julia --project=@. {0}
38-
run: |
39-
using Pkg
40-
Pkg.add([
41-
PackageSpec(name="MultivariatePolynomials", rev="master"),
42-
])
4336
- uses: julia-actions/julia-buildpkg@v1
4437
- uses: julia-actions/julia-runtest@v1
4538
with:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1212
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1313

1414
[compat]
15-
MultivariatePolynomials = "0.5.6"
15+
MultivariatePolynomials = "0.5.8"
1616
MutableArithmetics = "1"
1717
Reexport = "1"
1818
julia = "1"

src/comp.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ function Base.cmp(
3131
end
3232
end
3333

34+
# TODO remove
35+
Base.:(==)(x::Variable, y::Variable) = iszero(cmp(x, y))
36+
Base.:(==)(x::Monomial, y::Monomial) = iszero(cmp(x, y))
37+
3438
# Comparison of MonomialVector
3539
function (==)(x::MonomialVector{V,M}, y::MonomialVector{V,M}) where {V,M}
3640
if length(x.Z) != length(y.Z)

src/monomial_vector.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function MonomialVector(
215215
)) do z
216216
filter(Monomial(vars, z))
217217
end
218-
return MonomialVector(v, Z)
218+
return MonomialVector(vars, collect(Z))
219219
end
220220

221221
function MonomialVector(

0 commit comments

Comments
 (0)