-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
radical of a zero dimensional assoc. algebra #1701
radical of a zero dimensional assoc. algebra #1701
Conversation
is the algebra itself; up to now, GAP ran into an error. (I have seen code that had to work around this error.)
@@ -133,6 +133,8 @@ gap> radc:= RadicalOfAlgebra( c ); | |||
<algebra of dimension 0 over CF(5)> | |||
gap> Dimension( radc ); | |||
0 | |||
gap> Dimension( RadicalOfAlgebra( radc ) ); | |||
0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe for sanity check also RadicalOfAlgebra(radc) = radc
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's kind of automatic if both are zero-dimensional?
Codecov Report
@@ Coverage Diff @@
## master #1701 +/- ##
==========================================
+ Coverage 64.42% 64.42% +<.01%
==========================================
Files 1002 1002
Lines 326705 326866 +161
Branches 13216 13216
==========================================
+ Hits 210480 210590 +110
- Misses 113358 113405 +47
- Partials 2867 2871 +4
|
@@ -133,6 +133,8 @@ gap> radc:= RadicalOfAlgebra( c ); | |||
<algebra of dimension 0 over CF(5)> | |||
gap> Dimension( radc ); | |||
0 | |||
gap> Dimension( RadicalOfAlgebra( radc ) ); | |||
0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's kind of automatic if both are zero-dimensional?
@@ -2736,6 +2736,11 @@ InstallMethod( RadicalOfAlgebra, | |||
fi; | |||
|
|||
n:= Dimension( A ); | |||
|
|||
if n = 0 then | |||
return A; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it also set ParentAttr
to A
? It is bound in radicals returned by SubalgebraNC( A, rad, "basis" )
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting a parent is useful only if exploiting the parent relation yields some information, thus setting an object to its own parent should be avoided.
The radical of a zero dimensional assoc. algebra is the algebra itself.
Up to now, GAP ran into an error.
(I have seen code that had to work around this error.)