From 761879f5fd65b01c7b498ec7c517b4d8929e20d7 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Fri, 28 Jun 2019 01:34:37 +0200 Subject: [PATCH] fix rebase --- src/orbitdata.jl | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/orbitdata.jl b/src/orbitdata.jl index c133a74..13fe2da 100644 --- a/src/orbitdata.jl +++ b/src/orbitdata.jl @@ -213,17 +213,6 @@ function (g::perm)(y::GroupRingElem{T, <:SparseVector}) where T return result end -function (p::perm)(A::MatElem) - length(p.d) == size(A, 1) == size(A,2) || throw("Can't act via $p on matrix of size $(size(A))") - result = similar(A) - @inbounds for i in 1:size(A, 1) - for j in 1:size(A, 2) - result[p[i],p[j]] = A[i,j] # action by permuting rows and colums/conjugation - end - end - return result -end - function (p::perm)(A::MatElem) length(p.d) == size(A, 1) == size(A,2) || throw("Can't act via $p on matrix of size $(size(A))") result = similar(A) @@ -231,6 +220,7 @@ function (p::perm)(A::MatElem) for j in 1:size(A, 2) result[i, j] = A[p[i], p[j]] # action by permuting rows and colums/conjugation end + end return result end