-
Notifications
You must be signed in to change notification settings - Fork 165
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
Fixed RandomUnimodularMat for m=1 case #1508
Conversation
Otherwise it goes in an infinite loop.
Codecov Report
@@ Coverage Diff @@
## master #1508 +/- ##
==========================================
- Coverage 64.17% 64.17% -0.01%
==========================================
Files 992 992
Lines 322141 322144 +3
Branches 13087 13090 +3
==========================================
- Hits 206749 206748 -1
- Misses 112570 112577 +7
+ Partials 2822 2819 -3
|
Can you add a test case? While writing one, feel free to test some other cases of the function, if you find there are no tests for it :) (adding more tests is not required!) |
Also don't worry about the failing tests from Travis, there is currently a bug in Travis making 32 bit gap builds fail. |
Some test cases:
(as expected answer)
is never ending... But after the patch,
|
@wagh Thanks for not only reporting this, but also providing a fix. I have taken your commit, and added a test case, plus some extra work, in PR #1511 -- if you are curious, you can look there to learn how to turn a manual test case into one that is run as part of our automated test suite. If the tests there pass, we can merge it, and close both PRs. |
Thanks Max. Next time, I will try to create a test-suite! |
This has been superseded by #1511 |
Otherwise it goes in an infinite loop.