slightly better printing

This commit is contained in:
kalmar 2017-03-17 15:32:19 +01:00
parent 556b9cbba5
commit 59c1ad0cdd
1 changed files with 1 additions and 2 deletions

3
SL.jl
View File

@ -73,7 +73,7 @@ zero(x::Mod) = Mod(x.mod)
function inv(M::Array{Mod,2})
d = det(M)
d 0*d || thow(ArgumentError("Matrix is not invertible!"))
d 0*d || throw(ArgumentError("Matrix is not invertible! $M"))
return inv(det(M))*adjugate(M)
return adjugate(M)
end
@ -177,7 +177,6 @@ end
function main()
parsed_args = parse_commandline()
println("Parsed args:")
# SL(3,Z)
# upper_bound = 0.28-1e-5