We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc3cb4 commit 02373a6Copy full SHA for 02373a6
1 file changed
src/algorithms/dimension.jl
@@ -19,7 +19,9 @@ julia> dimension(I)
19
"""
20
function dimension(I::Ideal{T}) where T <: MPolyRingElem
21
22
- gb = get(I.gb, 0, groebner_basis(I, complete_reduction = true))
+ gb = get!(I.gb, 0) do
23
+ groebner_basis(I, complete_reduction = true)
24
+ end
25
R = parent(first(gb))
26
27
res = Set([trues(ngens(R))])
0 commit comments