Skip to content

Commit

Permalink
fix: prune
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes14 committed Jan 17, 2024
1 parent d69bac4 commit 1b324f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module/module.jl
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ and the transformation matrix of id to R.
"""
function prune_with_map(I::smodule{spoly{T}}) where T <: Nemo.FieldElem
R = base_ring(I)
r, TT_ptr = GC.@preserve I R libSingular.id_prune_map(I.ptr, R.ptr)
a = Vector{Int32}()
r, TT_ptr = GC.@preserve I R libSingular.id_prune_map_v(I.ptr, a, R.ptr)
return smodule{spoly{T}}(R, r),smatrix{spoly{T}}(R,TT_ptr)
end

Expand Down

0 comments on commit 1b324f1

Please sign in to comment.