From acb6b08ba96e0a6deb231768c4f6a9381c53574b Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Tue, 6 Feb 2024 13:33:21 +0100 Subject: [PATCH] fix: PermutationGroups.Perm is no longer mutable --- src/sqadjop.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sqadjop.jl b/src/sqadjop.jl index 9465395..ca0dbbc 100644 --- a/src/sqadjop.jl +++ b/src/sqadjop.jl @@ -27,13 +27,13 @@ function isadjacent( end function _ncycle(start, length, n=start + length - 1) - p = PermutationGroups.Perm(Int8(n)) + p = collect(Int8.(1:n)) @assert n ≥ start + length - 1 for k in start:start+length-2 p[k] = k + 1 end p[start+length-1] = start - return p + return PermutationGroups.Perm(p) end alternating_group(n::Integer) = PermutationGroups.PermGroup([_ncycle(i, 3) for i in 1:n-2])