You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as already observed the immediate error could be fixed by defining
Base.promote_rule(::Type{<:GF{p}}, ::Type{<:Rational}) where p = GF{p}
GF{p}(q::Rational, check=false) where p =GF{p}(numerator(q), check)/numerator(q)
but runs into problems deeper down the chain
kalmarek
changed the title
Error with finite fieldsimage_basis fails over finite fields
Feb 8, 2024
as of today master defining the following two methods:
import SymbolicWedderburn.Characters.FiniteFields as FF
Base.promote_rule(::Type{<:FF.GF{p}}, ::Type{<:Rational}) where p = FF.GF{p}
FF.GF{p}(q::Rational, check=false) where p = FF.GF{p}(numerator(q), check)/numerator(q)
makes the call to image_basis return what it should (well, hopefully, I didn't check the values):
I tried the following, based on the example in action_permutation.jl:
The text was updated successfully, but these errors were encountered: