mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-23 00:10:28 +01:00
fix rebase
This commit is contained in:
parent
a81dccea38
commit
761879f5fd
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user