Skip to content
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

Merged

Conversation

ThomasBreuer
Copy link
Contributor

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.)

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
Copy link
Member

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?

Copy link
Member

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
Copy link

codecov bot commented Sep 8, 2017

Codecov Report

Merging #1701 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            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
Impacted Files Coverage Δ
lib/algebra.gi 71.59% <100%> (+0.05%) ⬆️
lib/queue.g 66.4% <0%> (-3.2%) ⬇️
src/permutat.c 74.07% <0%> (-1.15%) ⬇️
lib/grpmat.gi 67.91% <0%> (-0.56%) ⬇️
src/hpc/traverse.c 78.29% <0%> (-0.39%) ⬇️
src/listfunc.c 75.34% <0%> (-0.18%) ⬇️
src/funcs.c 72.53% <0%> (-0.14%) ⬇️
src/hpc/threadapi.c 34.46% <0%> (-0.1%) ⬇️
src/stats.c 73.07% <0%> (ø) ⬆️
src/hpc/thread.c 46.64% <0%> (ø) ⬆️
... and 5 more

@olexandr-konovalov olexandr-konovalov added the gapdays2017-fall Issues and PRs that arose at https://www.gapdays.de/gapdays2017-fall label Sep 9, 2017
@@ -133,6 +133,8 @@ gap> radc:= RadicalOfAlgebra( c );
<algebra of dimension 0 over CF(5)>
gap> Dimension( radc );
0
gap> Dimension( RadicalOfAlgebra( radc ) );
0
Copy link
Member

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;
Copy link
Member

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" ).

Copy link
Contributor Author

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.

@fingolfin fingolfin added this to the GAP 4.9.0 milestone Sep 11, 2017
@fingolfin fingolfin added kind: bug Issues describing general bugs, and PRs fixing them kind: bug: unexpected error Issues describing bugs in which computation unexpectedly encounters an error, and PRs fixing them labels Sep 11, 2017
@fingolfin fingolfin merged commit b9bc370 into gap-system:master Sep 11, 2017
@olexandr-konovalov olexandr-konovalov added the release notes: added PRs introducing changes that have since been mentioned in the release notes label Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gapdays2017-fall Issues and PRs that arose at https://www.gapdays.de/gapdays2017-fall kind: bug: unexpected error Issues describing bugs in which computation unexpectedly encounters an error, and PRs fixing them kind: bug Issues describing general bugs, and PRs fixing them release notes: added PRs introducing changes that have since been mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants