Skip to content

Commit

Permalink
compatibily
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes14 committed Feb 7, 2024
1 parent 3947043 commit b66bd3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions deps/src/ideals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,10 @@ void singular_define_ideals(jlcxx::Module & Singular)
rChangeCurrRing(o);
ideal factors;
ideal unit;
ideal quot = idDivRem(m, sm, factors, &unit, flag);
ideal rest = idDivRem(m, sm, factors, &unit, flag);
rest->rank = m->rank;
rChangeCurrRing(origin);
return std::make_tuple(quot,factors, unit);
return std::make_tuple(rest,factors, unit);
});

Singular.method("id_Lift", [](ideal m, ideal sm, ring o) {
Expand Down
2 changes: 1 addition & 1 deletion src/ideal/ideal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ function divrem(I::sideal{S}, G::sideal{S}; complete_reduction::Bool = false) wh
false, true, R.ptr)
libSingular.set_option("OPT_REDSB",old_redsb)
libSingular.set_option("OPT_REDTAIL",old_redtail)
return (sideal{S}(R,ptr_T), sideal{S}(R,ptr_Rest), smodule{S}(R,ptr_U))
return (smodule{S}(R,ptr_T), sideal{S}(R,ptr_Rest), smodule{S}(R,ptr_U))
end

@doc raw"""
Expand Down

0 comments on commit b66bd3f

Please sign in to comment.