mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-11-04 19:00:27 +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)
|
λ(i, j) = Transvection(:λ, i, j)
|
||||||
|
|
||||||
function Base.show(io::IO, t::Transvection)
|
function Base.show(io::IO, t::Transvection)
|
||||||
id = if t.id === :ϱ
|
print(io, t.id, subscriptify(t.i), '.', subscriptify(t.j))
|
||||||
'ϱ'
|
|
||||||
else # if t.id === :λ
|
|
||||||
'λ'
|
|
||||||
end
|
|
||||||
print(io, id, subscriptify(t.i), '.', subscriptify(t.j))
|
|
||||||
return t.inv && print(io, "^-1")
|
return t.inv && print(io, "^-1")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ end
|
|||||||
|
|
||||||
function Base.show(io::IO, s::ElementarySymplectic)
|
function Base.show(io::IO, s::ElementarySymplectic)
|
||||||
i, j = Groups.subscriptify(s.i), Groups.subscriptify(s.j)
|
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)")
|
return !isone(s.val) && print(io, "^$(s.val)")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user