1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-11-19 06:30:29 +01:00

better show

This commit is contained in:
Marek Kaluba 2021-05-26 12:07:15 +02:00
parent e424bdc575
commit 1c7f0a5f01
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
2 changed files with 5 additions and 3 deletions

View File

@ -97,9 +97,11 @@ end
# eye-candy # eye-candy
Base.show(io::IO, ::Type{<:FPGroupElement{<:AutomorphismGroup{T}}}) where {T<:FreeGroup} = Base.show(io::IO, ::Type{<:FPGroupElement{<:AutomorphismGroup{T}}}) where {T} =
print(io, "Automorphism{$T,…}") print(io, "Automorphism{$T,…}")
Base.show(io::IO, A::AutomorphismGroup) = print(io, "automorphism group of ", object(A))
## Automorphism Evaluation ## Automorphism Evaluation
domain(f::FPGroupElement{<:AutomorphismGroup}) = deepcopy(parent(f).domain) domain(f::FPGroupElement{<:AutomorphismGroup}) = deepcopy(parent(f).domain)

View File

@ -180,8 +180,8 @@ end
function Base.show(io::IO, G::FPGroup) function Base.show(io::IO, G::FPGroup)
print(io, "") print(io, "")
Base.print_array(io, reshape(gens(G), (1, ngens(G)))) join(io, gens(G), ", ")
print(io, " | ") print(io, " | ")
Base.print_array(io, relations(G)) join(io, relations(G), ", ")
print(io, "") print(io, "")
end end