We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f721360 commit ea6c6a9Copy full SHA for ea6c6a9
src/algorithms/dimension.jl
@@ -19,10 +19,12 @@ julia> dimension(I)
19
"""
20
function dimension(I::Ideal{T}) where T <: MPolyRingElem
21
22
+ !isnothing(I.dim) && return I.dim
23
gb = get!(I.gb, 0) do
24
groebner_basis(I, complete_reduction = true)
25
end
26
R = parent(first(gb))
27
+
28
res = Set([trues(ngens(R))])
29
lead_exps = (_drl_lead_exp).(gb)
30
for lexp in lead_exps
0 commit comments