act by perm on a MatElem by native column/row operations

This commit is contained in:
kalmar 2017-08-07 19:11:57 +02:00
parent aa2d0083d3
commit e78b8dbefd

View File

@ -28,8 +28,7 @@ end
function (p::perm)(A::MatElem)
length(p.d) == A.r == A.c || throw("Can't act via $p on matrix of size ($(A.r), $(A.c))")
R = parent(A)
inv_p = inv(p)
return R(Nemo.matrix_repr(p))*A*R(Nemo.matrix_repr(inv_p))
return p*A*inv(p)
end
###############################################################################