1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-26 17:05:27 +01:00

fix rebase

This commit is contained in:
kalmarek 2019-06-28 01:34:37 +02:00
parent a81dccea38
commit 761879f5fd
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -213,17 +213,6 @@ function (g::perm)(y::GroupRingElem{T, <:SparseVector}) where T
return result return result
end 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) 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))") length(p.d) == size(A, 1) == size(A,2) || throw("Can't act via $p on matrix of size $(size(A))")
result = similar(A) result = similar(A)
@ -231,6 +220,7 @@ function (p::perm)(A::MatElem)
for j in 1:size(A, 2) for j in 1:size(A, 2)
result[i, j] = A[p[i], p[j]] # action by permuting rows and colums/conjugation result[i, j] = A[p[i], p[j]] # action by permuting rows and colums/conjugation
end end
end
return result return result
end end