mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-11-04 02:50:28 +01:00
add separating dot between indices
This commit is contained in:
parent
126c8bbc22
commit
eacb32af68
@ -14,12 +14,7 @@ end
|
||||
λ(i, j) = Transvection(:λ, i, j)
|
||||
|
||||
function Base.show(io::IO, t::Transvection)
|
||||
id = if t.id === :ϱ
|
||||
'ϱ'
|
||||
else # if t.id === :λ
|
||||
'λ'
|
||||
end
|
||||
print(io, id, subscriptify(t.i), '.', subscriptify(t.j))
|
||||
print(io, t.id, subscriptify(t.i), '.', subscriptify(t.j))
|
||||
return t.inv && print(io, "^-1")
|
||||
end
|
||||
|
||||
|
@ -23,7 +23,7 @@ end
|
||||
|
||||
function Base.show(io::IO, s::ElementarySymplectic)
|
||||
i, j = Groups.subscriptify(s.i), Groups.subscriptify(s.j)
|
||||
print(io, s.symbol, i, j)
|
||||
print(io, s.symbol, i, '.', j)
|
||||
return !isone(s.val) && print(io, "^$(s.val)")
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user