broadcast * for Mods
This commit is contained in:
parent
fb9e402912
commit
4c55783a37
2
SL.jl
2
SL.jl
@ -74,7 +74,7 @@ zero(x::Mod) = Mod(x.mod)
|
|||||||
function inv(M::Array{Mod,2})
|
function inv(M::Array{Mod,2})
|
||||||
d = det(M)
|
d = det(M)
|
||||||
d ≠ 0*d || throw(ArgumentError("Matrix is not invertible! $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)
|
return adjugate(M)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user