Skip to content

Commit f721360

Browse files
committed
compatibility with julia 1.6 findmax
1 parent 02373a6 commit f721360

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/algorithms/dimension.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ function dimension(I::Ideal{T}) where T <: MPolyRingElem
2323
groebner_basis(I, complete_reduction = true)
2424
end
2525
R = parent(first(gb))
26-
2726
res = Set([trues(ngens(R))])
2827
lead_exps = (_drl_lead_exp).(gb)
2928
for lexp in lead_exps
@@ -54,6 +53,6 @@ end
5453

5554
function _drl_lead_exp(p::MPolyRingElem)
5655
exps = collect(Nemo.exponent_vectors(p))
57-
_, i = findmax(_drl_exp_vector, exps)
56+
_, i = findmax(_drl_exp_vector.(exps))
5857
return exps[i]
5958
end

0 commit comments

Comments
 (0)