Skip to content

Commit

Permalink
Add fit! for all MPolyRingElem subtypes (#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Sep 24, 2024
1 parent a47d0f6 commit be1cf81
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/flint/fmpq_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ function denominator(a::QQMPolyRingElem)
return c
end

function fit!(a::QQMPolyRingElem, n::Int)
# needs to exist for the MPoly interface
return nothing
end

################################################################################
#
# Getting coefficients
Expand Down
5 changes: 5 additions & 0 deletions src/flint/fmpz_mod_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ for (etype, rtype, ftype, ctype) in (
a, parent(a)))
end

function fit!(a::($etype), n::Int)
# needs to exist for the MPoly interface
return nothing
end

# TODO move this
function expressify(a::($rtype); context = nothing)
return Expr(:sequence, Expr(:text, "Multivariate Polynomial Ring in "),
Expand Down
5 changes: 5 additions & 0 deletions src/flint/fmpz_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ function is_constant(a::ZZMPolyRingElem)
return Bool(b)
end

function fit!(a::ZZMPolyRingElem, n::Int)
# needs to exist for the MPoly interface
return nothing
end

################################################################################
#
# Getting coefficients
Expand Down
5 changes: 5 additions & 0 deletions src/flint/fq_default_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ function is_constant(a::FqMPolyRingElem)
return is_constant(a.data)
end

function fit!(a::FqMPolyRingElem, n::Int)
# needs to exist for the MPoly interface
return nothing
end

###############################################################################
#
# AbstractString I/O
Expand Down
5 changes: 5 additions & 0 deletions src/flint/fq_nmod_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ function is_constant(a::fqPolyRepMPolyRingElem)
return Bool(b)
end

function fit!(a::fqPolyRepMPolyRingElem, n::Int)
# needs to exist for the MPoly interface
return nothing
end

################################################################################
#
# Getting coefficients
Expand Down
5 changes: 5 additions & 0 deletions src/flint/nmod_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ for (etype, rtype, ftype, ctype, utype) in (
a, parent(a)))
end

function fit!(a::($etype), n::Int)
# needs to exist for the MPoly interface
return nothing
end

################################################################################
#
# Getting coefficients
Expand Down

0 comments on commit be1cf81

Please sign in to comment.