Skip to content

Commit

Permalink
The radical of a zero dimensional assoc. algebra
Browse files Browse the repository at this point in the history
is the algebra itself;
up to now, GAP ran into an error.
(I have seen code that had to work around this error.)
  • Loading branch information
ThomasBreuer authored and fingolfin committed Sep 11, 2017
1 parent 71eb99e commit b9bc370
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/algebra.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2736,6 +2736,11 @@ InstallMethod( RadicalOfAlgebra,
fi;

n:= Dimension( A );

if n = 0 then
return A;
fi;

BA:= Basis( A );
bv:= BasisVectors( BA );
F:= LeftActingDomain( A );
Expand Down
2 changes: 2 additions & 0 deletions tst/testinstall/algmat.tst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ gap> radc:= RadicalOfAlgebra( c );
<algebra of dimension 0 over CF(5)>
gap> Dimension( radc );
0
gap> Dimension( RadicalOfAlgebra( radc ) );
0

#############################################################################
gap> cen:= Centralizer( c, GeneratorsOfAlgebra( c )[1] );
Expand Down

0 comments on commit b9bc370

Please sign in to comment.