Skip to content

Commit fcd8c93

Browse files
committed
fix: show for infinite dim group algebras
1 parent 5c0f386 commit fcd8c93

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/AlgAss/AlgGrp.jl

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,21 @@ end
171171

172172
function show(io::IO, A::GroupAlgebra)
173173
if is_terse(io)
174-
print(io, "Group algebra of dimension ", dim(A), " over ", base_ring(A))
174+
print(io, "Group algebra of ")
175+
if is_finite(group(A))
176+
print(io, "dimension ", order(group(A)))
177+
else
178+
print(io, "infinite dimension ")
179+
end
180+
print(io, " over ", base_ring(A))
175181
else
176-
print(io, "Group algebra of group of order ", order(group(A)), " over ")
182+
print(io, "Group algebra of group ")
183+
if is_finite(group(A))
184+
print(io, "of order ", order(group(A)))
185+
else
186+
print(io, "of infinite order ")
187+
end
188+
print(io, "over ")
177189
print(terse(io), base_ring(A))
178190
end
179191
end

0 commit comments

Comments
 (0)