-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add slogdet
implementation
#28
Conversation
Codecov Report
@@ Coverage Diff @@
## master #28 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 16 16
Lines 1739 1753 +14
=========================================
+ Hits 1739 1753 +14
Continue to review full report at Codecov.
|
…manage tuple results.
…manage tuple results.
…lti-dimensional arrays)
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.
The implementation looks good.
We can almost merge this.
But I'd prefer if you could make a few changes to the tests:
- revert the changes to
compare_allclose
- see the tests for
topk
regarding multiple return values (simply use a separate test for each return value; would also give a more specific error message) - add a few more test cases that result in qualitatively different results (e.g., a matrix with a finite logdet)
Hi @jonasrauber , thanks for your feedback! |
@eserie Looks good, but we had a small misunderstanding regarding the third change: no need to manually compare to the reference values (because the decorator does compare everything to numpy anyway). What I meant was that you should just duplicate the two tests (for sign and logdet) to have two for the original matrix you had and two for a matrix with finite logdet (so for simple test functions in the end). |
…eady compare all implementations with numpy implementation
@jonasrauber , thanks for the comment. |
@eserie thanks, that's also a nice solution! |
@jonasrauber, it's true that the test code seems to work for both orders of decorators. When they are used with |
Thanks for the integration @jonasrauber ! |
Fixes #27