Skip to content

Commit 1491286

Browse files
committed
fixes dimension for I = <1>
1 parent 2b34126 commit 1491286

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/algorithms/dimension.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function dimension(I::Ideal{T}) where T <: MPolyRingElem
4444
unique!(res)
4545
end
4646

47+
length(res) == 0 && return -1
4748
max_length = maximum(mis -> length(findall(mis)), res)
4849
return max_length
4950
end

0 commit comments

Comments
 (0)