Skip to content

Commit 52f256c

Browse files
committed
Missing star
1 parent 173effd commit 52f256c

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

docs/src/tutorials/Symmetry/cyclic.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,6 @@ model = Model(solver)
9090
@variable(model, t)
9191
@objective(model, Max, t)
9292
pattern = Symmetry.Pattern(G, action)
93-
basis = MB.explicit_basis(MB.algebra_element(poly - t))
94-
using SymbolicWedderburn
95-
summands = SymbolicWedderburn.symmetry_adapted_basis(
96-
Float64,
97-
pattern.group,
98-
pattern.action,
99-
basis,
100-
semisimple = true,
101-
)
102-
103-
gram_basis = SumOfSquares.Certificate.Symmetry._gram_basis(pattern, basis, Float64)
104-
10593
con_ref = @constraint(model, poly - t in SOSCone(), symmetry = pattern)
10694
optimize!(model)
10795
@test termination_status(model) == MOI.OPTIMAL #src

src/Certificate/newton_polytope.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ function post_filter(
721721
)
722722
end
723723
for (mult, gram_monos) in zip(generators, multipliers_gram_monos)
724-
MA.operate_to!(cache, +, SA.QuadraticForm(SignGram(-1, gram_monos)))
724+
MA.operate_to!(cache, +, SA.QuadraticForm{SA.star}(SignGram(-1, gram_monos)))
725725
MA.operate!(SA.UnsafeAddMul(*), counter, mult, cache)
726726
end
727727
function decrease(sign, a, b, generator)

src/gram_matrix.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function MA.operate!(
144144
g::GramMatrix,
145145
args::Vararg{Any,N},
146146
) where {N}
147-
return MA.operate!(op, p, SA.QuadraticForm(g), args...)
147+
return MA.operate!(op, p, SA.QuadraticForm{SA.star}(g), args...)
148148
end
149149

150150
"""
@@ -259,11 +259,11 @@ end
259259
#end
260260

261261
function MA.operate_to!(a::SA.AlgebraElement, ::typeof(+), g::GramMatrix)
262-
return MA.operate_to!(a, +, SA.QuadraticForm(g))
262+
return MA.operate_to!(a, +, SA.QuadraticForm{SA.star}(g))
263263
end
264264

265265
function MA.operate!(op::SA.UnsafeAdd, a::SA.AlgebraElement, g::GramMatrix)
266-
return MA.operate!(op, a, SA.QuadraticForm(g))
266+
return MA.operate!(op, a, SA.QuadraticForm{SA.star}(g))
267267
end
268268

269269
function MA.operate!(

0 commit comments

Comments
 (0)