fix undefined variable

default value is one(M.base_ring)
This commit is contained in:
kalmarek 2017-09-10 14:32:44 +02:00
parent 67523717b5
commit ee11e32030

View File

@ -71,7 +71,7 @@ function SL_generatingset(n::Int, p::Int, X::Bool=false)
F = ResidueRing(ZZ, p)
G = MatrixSpace(F, n, n)
indexing = [(i,j) for i in 1:n for j in 1:n if i≠j]
S = [E(i, j, G, v) for (i,j) in indexing]
S = [E(i, j, G) for (i,j) in indexing]
S = vcat(S, [inv(x) for x in S])
return G, unique(S)
end