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

Avoid declaring and using attribute 'Matrix' #64

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

fingolfin
Copy link
Member

Instead, introduce two attributes MatrixOfRack and MatrixOfCycleSet,
and provide convenience methods for Matrix that delegate to the two.

This way, Matrix is freed up to become an operation in GAP 4.12.

Also optimize CycleSet2YB a bit.

Instead, introduce two attributes MatrixOfRack and MatrixOfCycleSet,
and provide convenience methods for Matrix that delegate to the two.

This way, Matrix is freed up to become an operation in GAP 4.12.

Also optimize CycleSet2YB a bit.
@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #64 into master will decrease coverage by <.01%.
The diff coverage is 81.25%.

@@            Coverage Diff             @@
##           master      #64      +/-   ##
==========================================
- Coverage   99.52%   99.52%   -0.01%     
==========================================
  Files          94       94              
  Lines      106313   106312       -1     
==========================================
- Hits       105806   105805       -1     
  Misses        507      507
Impacted Files Coverage Δ
lib/rack.gi 98.14% <100%> (+0.03%) ⬆️
lib/cycleset.gd 100% <100%> (ø) ⬆️
lib/rack.gd 100% <100%> (ø) ⬆️
lib/cycleset.gi 68.42% <66.66%> (-0.19%) ⬇️

@fingolfin fingolfin changed the title Avoid declaring and use attribute 'Matrix' Avoid declaring and using attribute 'Matrix' Oct 18, 2019
Copy link
Member

@olexandr-konovalov olexandr-konovalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. @vendramin could such renaming break any user code? Also, would be good to add a test for IsNonDegenerate for the better test coverage of the diff.

@olexandr-konovalov
Copy link
Member

@fingolfin please rebase to include Travis test in stable-4.11 too.

@olexandr-konovalov olexandr-konovalov merged commit bbc9559 into master Nov 7, 2019
@olexandr-konovalov olexandr-konovalov deleted the mh/Matrix branch November 7, 2019 16:34
@olexandr-konovalov
Copy link
Member

@fingolfin checked myself - passes in stable-4.11. Thanks.

@olexandr-konovalov
Copy link
Member

Oops this missed a warning from the log file which did not fail the test:

Syntax warning: Unbound global variable in /home/travis/build/gap-packages/Yan\
gBaxter/gaproot/pkg/YangBaxter/lib/cycleset.gi:167
  perms := Permutations(obj);
  ^^^^^
Syntax warning: Unbound global variable in /home/travis/build/gap-packages/Yan\
gBaxter/gaproot/pkg/YangBaxter/lib/cycleset.gi:171
      lperms[x][y] := mat[x/perms[y],y];
                            ^^^^^

Will fix it now.

olexandr-konovalov pushed a commit that referenced this pull request Nov 7, 2019
@olexandr-konovalov
Copy link
Member

Fixed in da8e135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants