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 2b34126 commit 1491286Copy full SHA for 1491286
src/algorithms/dimension.jl
@@ -44,6 +44,7 @@ function dimension(I::Ideal{T}) where T <: MPolyRingElem
44
unique!(res)
45
end
46
47
+ length(res) == 0 && return -1
48
max_length = maximum(mis -> length(findall(mis)), res)
49
return max_length
50
0 commit comments