Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Nov 21, 2024
1 parent 3de769e commit 608b1c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/subs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,16 @@ function MP.substitute(
return MP.substitute(st, p, subsmap(st, MP.variables(p), s))
end

# TODO resolve ambiguity. Can remove after:
# https://github.com/JuliaAlgebra/MultivariatePolynomials.jl/pull/305
function MP.substitute(
st::MP.AbstractSubstitutionType,
p::PolyType,
s::MP.AbstractMultiSubstitution,
)
return MP.substitute(st, p, subsmap(st, MP.variables(p), (s,)))
end

function MP.substitute(
st::MP.AbstractSubstitutionType,
p::PolyType,
Expand Down

0 comments on commit 608b1c4

Please sign in to comment.