@@ -187,7 +187,7 @@ function evaluate_monomials(monomial_value::Function,
187
187
U = MA. promote_operation (* , Float64, T)
188
188
total = zero (MA. promote_operation (+ , U, U))
189
189
for t in MP. terms (set. p)
190
- total = MA. add_mul! (total, monomial_value (MP. exponents (MP. monomial (t))), MP. coefficient (t))
190
+ total = MA. add_mul!! (total, monomial_value (MP. exponents (MP. monomial (t))), MP. coefficient (t))
191
191
end
192
192
return total
193
193
end
@@ -196,7 +196,7 @@ function evaluate_monomials(monomial_value::Function, set::Sets.Ellipsoid{T}) wh
196
196
total = zero (MA. promote_operation (+ , U, U))
197
197
for j in 1 : Sets. dimension (set)
198
198
for i in 1 : Sets. dimension (set)
199
- total = MA. add_mul! (total, monomial_value (ell_exponents (i, j, Sets. dimension (set))), set. Q[i, j])
199
+ total = MA. add_mul!! (total, monomial_value (ell_exponents (i, j, Sets. dimension (set))), set. Q[i, j])
200
200
end
201
201
end
202
202
return total
@@ -205,7 +205,7 @@ function evaluate_monomials(monomial_value::Function, set::Sets.PolarPoint{T}) w
205
205
U = MA. promote_operation (* , Float64, T)
206
206
total = zero (MA. promote_operation (+ , U, U))
207
207
for i in 1 : Sets. dimension (set)
208
- total = MA. add_mul! (total, monomial_value (lin_exponents (i, Sets. dimension (set))), set. a[i])
208
+ total = MA. add_mul!! (total, monomial_value (lin_exponents (i, Sets. dimension (set))), set. a[i])
209
209
end
210
210
return total
211
211
end
@@ -225,7 +225,7 @@ function l1_integral(set::Sets.Piecewise{T, <:Union{Sets.PolarPoint{T}, Sets.Ell
225
225
# We normalize as the norm of each ray is irrelevant
226
226
cut = normalize (sum (normalize ∘ Polyhedra. coord, rays (piece))) # Just a heuristic, open to better ideas
227
227
polytope = piece ∩ HalfSpace (cut, one (eltype (cut)))
228
- total = MA. add! (total, integrate_gauge_like (set, polytope, decs, val, cache))
228
+ total = MA. add!! (total, integrate_gauge_like (set, polytope, decs, val, cache))
229
229
end
230
230
return total
231
231
end
0 commit comments