File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ AbstractAlgebra = "0.43.1"
29
29
AlgebraicSolving = " 0.7.0"
30
30
Distributed = " 1.6"
31
31
GAP = " 0.11.3"
32
- Hecke = " 0.34.1 "
32
+ Hecke = " 0.34.3 "
33
33
JSON = " ^0.20, ^0.21"
34
34
JSON3 = " 1.13.2"
35
35
LazyArtifacts = " 1.6"
Original file line number Diff line number Diff line change @@ -970,14 +970,17 @@ true
970
970
function is_homogeneous (F:: MPolyDecRingElem )
971
971
D = parent (F). D
972
972
d = parent (F). d
973
- S = Set {elem_type(D)} ()
973
+ S = nothing
974
+ u = zero (D)
974
975
for c = MPolyExponentVectors (forget_decoration (F))
975
- u = parent (F) . D[ 0 ]
976
+ u = zero! (u)
976
977
for i= 1 : length (c)
977
- u += c [i]* d [i]
978
+ u = addmul_delayed_reduction! (u, d [i], c [i])
978
979
end
979
- push! (S, u)
980
- if length (S) > 1
980
+ u = reduce! (u)
981
+ if S === nothing
982
+ S = deepcopy (u)
983
+ elseif S != u
981
984
return false
982
985
end
983
986
end
You can’t perform that action at this time.
0 commit comments