Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ambiguous evaluate #1668

Closed
simonbrandhorst opened this issue Nov 1, 2022 · 0 comments · Fixed by #1673
Closed

ambiguous evaluate #1668

simonbrandhorst opened this issue Nov 1, 2022 · 0 comments · Fixed by #1673
Labels
bug Something isn't working

Comments

@simonbrandhorst
Copy link
Collaborator

julia> k,a = cyclotomic_field(3)
(Cyclotomic field of order 3, z_3)

julia> P,(x,y) = PolynomialRing(k,[:x,:y])
(Multivariate Polynomial Ring in x, y over k, AbstractAlgebra.Generic.MPoly{nf_elem}[x, y])

julia> evaluate(x//y,[a,a])
ERROR: MethodError: evaluate(::AbstractAlgebra.Generic.Frac{AbstractAlgebra.Generic.MPoly{nf_elem}}, ::Vector{nf_elem}) is ambiguous. Candidates:
  evaluate(f::FracElem{T}, V::Vector{U}) where {T<:RingElement, U<:RingElement} in AbstractAlgebra at /home/simon/.julia/packages/AbstractAlgebra/ZmWFo/src/Fraction.jl:606
  evaluate(f::FracElem{<:MPolyElem}, v::Vector; ErrorTolerant) in Oscar.ModStdQt at /home/simon/.julia/dev/Oscar/experimental/ModStd/ModStdQt.jl:11
Possible fix, define
  evaluate(::FracElem{T}, ::Vector{U}) where {T<:MPolyElem, U<:RingElement}
Stacktrace:
 [1] top-level scope
   @ REPL[225]:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant