From f9ede913435833a8f378566263ff31d8423fe979 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Mon, 2 Apr 2018 18:14:08 +0200 Subject: [PATCH] replace delete_ids! -> deleteids! --- src/AutGroup.jl | 4 ++-- src/Groups.jl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AutGroup.jl b/src/AutGroup.jl index 2a1ec46..1d0767a 100644 --- a/src/AutGroup.jl +++ b/src/AutGroup.jl @@ -342,7 +342,7 @@ function simplify_perms!(W::Automorphism{N}) where N W.symbols[i+1].typ.perm.d = p end end - delete_ids!(W) + deleteids!(W) return reduced end @@ -350,8 +350,8 @@ function reduce!(W::Automorphism) if length(W) == 0 return W elseif length(W)< 2 - delete_ids!(W) W.modified = true + deleteids!(W) else reduced = false while !reduced diff --git a/src/Groups.jl b/src/Groups.jl index fe117ea..1cae351 100644 --- a/src/Groups.jl +++ b/src/Groups.jl @@ -105,7 +105,7 @@ end length(W::GWord) = sum([length(s) for s in W.symbols]) -function delete_ids!(W::GWord) +function deleteids!(W::GWord) to_delete = Int[] for i in 1:length(W.symbols) if W.symbols[i].pow == 0 @@ -129,13 +129,13 @@ function free_reduce!(W::GWord) W.symbols[i] = change_pow(W.symbols[i], 0) end end - delete_ids!(W) + deleteids!(W) return reduced end function reduce!(W::GWord) if length(W) < 2 - delete_ids!(W) + deleteids!(W) else reduced = false while !reduced