-
Notifications
You must be signed in to change notification settings - Fork 162
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
Remove Section 87.2-5 on "Avoiding multiplication of permutations" in the reference manual (the described functionality does not actually work) #3101
Conversation
Thanks! Indeed this section of the documentation has been wrong for.. about 20 years or so! |
Codecov Report
@@ Coverage Diff @@
## master #3101 +/- ##
=======================================
Coverage 83.56% 83.56%
=======================================
Files 686 686
Lines 336759 336759
=======================================
Hits 281401 281401
Misses 55358 55358 |
@wucas could you please point out to the location of the commented out code - may be those line could now be deleted completely too. |
I'd prefer the commentedd lines stay -- it is in the partition backtrack code where it is useful to be able to see the history. |
Just for reference the code is here: Line 1458 in 72d2c36
|
Looking at the code (thanks for pointing out the exact location), I agree that throwing away the line On the other hand, I don't think that leaving the code commented out without explaining why it is commented out, and then throwing away the documentation will help "understanding what the algorithm is supposed to do and to not confuse the "casual" reader more about the intention of the code". I think a better way of doing this would be, while deleting the documentation, to add the comment to Alternatively, one could comment out the XML code in |
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 suggest to add some comment to doc/ref/stbchain.xml
to connect commented out source code and withdrawn documentation via modifying them in the same commit.
@alex-konovalov I get the intention of keeping a trace of this feature. But I'm not sure how such an explanation would fit in the documentation. It seems at bit out of place to suddenly explain something about code that was commented out years ago. For the casual reader i would argue that as long as the functionality is undocumented i wouldn't worry about it. I only stumbled over it because it was documented. Otherwise I'd never had the idea to use it in the first place. |
@wucas agree - I think it will suffice if you will add to this PR a comment at
|
@alex-konovalov thanks for the suggestion. I added the comment at the first instance of |
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.
Fine with me thanks - but it's necessary to squash commits into one when this will be merged (or you can use interactive rebase with git rebase -i master
, squash them yourself, and then force-push to your branch).
Made a final look at the removed XML - and the only example in that section used
|
The method for avoiding multiplication of permutations described in Section 87.2-5 does not work.
It seems that the code providing the data structure used (which is the rgtObj and lftObj as described in Section 87.2-5) is commented out. Thus the section should be removed.