Skip to content

Commit

Permalink
Add informative error message for standard basis computation.
Browse files Browse the repository at this point in the history
  • Loading branch information
HechtiDerLachs committed Oct 15, 2024
1 parent 24c8f63 commit 1d102a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Modules/UngradedModules/SubquoModule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,10 @@ function set_default_ordering!(M::SubquoModule, ord::ModuleOrdering)
end

function standard_basis(M::SubquoModule; ordering::ModuleOrdering = default_ordering(M))
error("standard basis computation is not supported for modules over rings of type $(typeof(base_ring(M)))")

Check warning on line 758 in src/Modules/UngradedModules/SubquoModule.jl

View check run for this annotation

Codecov / codecov/patch

src/Modules/UngradedModules/SubquoModule.jl#L758

Added line #L758 was not covered by tests
end

function standard_basis(M::SubquoModule{<:MPolyRingElem{T}}; ordering::ModuleOrdering = default_ordering(M)) where {T<:Union{<:FieldElem, ZZRingElem}}
@req is_exact_type(elem_type(base_ring(M))) "This functionality is only supported over exact fields."
if !haskey(M.groebner_basis, ordering)
if isdefined(M, :quo)
Expand Down

0 comments on commit 1d102a4

Please sign in to comment.