Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed Jul 8, 2024
1 parent e86b80a commit 061a062
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ jobs:
- name: Example C₂ linear action
shell: julia --project=examples {0}
run: |
include("examples/preamble.jl");
include("examples/ex_C2.linear.jl")
include(joinpath(pwd(), "examples/preamble.jl"))
include(joinpath(pwd(), "examples/ex_C2_linear.jl"))
- name: Example a polynomial with Sym(4)-symmetry
shell: julia --project=examples {0}
run: |
include("examples/preamble.jl");
include("examples/ex_S4.jl")
include(joinpath(pwd(), "examples/preamble.jl"))
include(joinpath(pwd(), "examples/ex_S4.jl"))
- name: Example Motzkin polynomial
shell: julia --project=examples {0}
run: |
include("examples/preamble.jl");
include("examples/ex_motzkin.jl")
include(joinpath(pwd(), "examples/preamble.jl"))
include(joinpath(pwd(), "examples/ex_motzkin.jl"))
- name: Example Robinson Form
shell: julia --project=examples {0}
run: |
include("examples/preamble.jl");
include("examples/ex_robinson_form.jl")
include(joinpath(pwd(), "examples/preamble.jl"))
include(joinpath(pwd(), "examples/ex_robinson_form.jl"))
2 changes: 1 addition & 1 deletion examples/ex_C2_linear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ end
ssimple_basis =
SW.symmetry_adapted_basis(Float64, G, By90Rotation(), monomial_basis)
degs = SW.degree.(ssimple_basis)
mlts = multiplicity.(ssimple_basis)
mlts = SW.multiplicity.(ssimple_basis)
@test sum(d * m for (d, m) in zip(degs, mlts)) == length(monomial_basis)
@test sum(first size, ssimple_basis) == length(monomial_basis)
end
6 changes: 3 additions & 3 deletions examples/ex_robinson_form.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ include(joinpath(@__DIR__, "dihedral.jl"))

struct DihedralAction <: OnMonomials end

SymbolicWedderburn.coeff_type(::DihedralAction) = Int
function SymbolicWedderburn.action(
SW.coeff_type(::DihedralAction) = Int
function SW.action(
::DihedralAction,
el::DihedralElement,
mono::AbstractMonomial,
Expand All @@ -45,7 +45,7 @@ end

G = DihedralGroup(4)
for g in G
@assert SymbolicWedderburn.action(DihedralAction(), g, robinson_form) ==
@assert SW.action(DihedralAction(), g, robinson_form) ==
robinson_form
end

Expand Down
4 changes: 2 additions & 2 deletions examples/sos_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function sos_problem(

C = DP.coefficients(poly - t, SW.basis(wedderburn))

for iv in invariant_vectors(wedderburn)
for iv in SW.invariant_vectors(wedderburn)
c = dot(C, iv)
M_orb = invariant_constraint!(M_orb, M, iv)
# Mπs = SW.diagonalize!(Mπs, M_orb, wedderburn)
Expand Down Expand Up @@ -147,7 +147,7 @@ function sos_problem(
basis = SA.FixedBasis(basis_constraints, SA.DiracMStructure(*))

tblG = SW.Characters.CharacterTable(Rational{Int}, G)
iv = invariant_vectors(tblG, action, basis)
iv = SW.invariant_vectors(tblG, action, basis)
iv, basis
end

Expand Down

0 comments on commit 061a062

Please sign in to comment.