broadcast * for Mods

This commit is contained in:
kalmar 2017-03-17 18:12:56 +01:00
parent fb9e402912
commit 4c55783a37
1 changed files with 1 additions and 1 deletions

2
SL.jl
View File

@ -74,7 +74,7 @@ zero(x::Mod) = Mod(x.mod)
function inv(M::Array{Mod,2})
d = det(M)
d 0*d || throw(ArgumentError("Matrix is not invertible! $M"))
return inv(det(M))*adjugate(M)
return inv(det(M)).*adjugate(M)
return adjugate(M)
end