-
Notifications
You must be signed in to change notification settings - Fork 58
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 and use zero!, one!, neg! methods #1869
Conversation
9521cf0
to
905bba5
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1869 +/- ##
==========================================
+ Coverage 87.32% 87.37% +0.04%
==========================================
Files 97 97
Lines 35658 36561 +903
==========================================
+ Hits 31139 31945 +806
- Misses 4519 4616 +97 ☔ View full report in Codecov by Sentry. |
Seems to be ok. The unfortunate thing is that we would not notice if a method went missing. |
a8190be
to
a622e98
Compare
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.
found some things. for the valuation issue, can you please check all other relative series types as well (I might have forgotten a comment somewhere).
Overall, I would really like to have Nemocas/AbstractAlgebra.jl#1814 in, but let's merge this once the comments are resolved and fix any issues later
else | ||
z.data = sub!(z.data, R.n, a.data) | ||
end | ||
return z |
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.
no idea if this is correct (seems non-trivial enough at least to deserve a comment)
Thanks for the careful feedback, @lgoettgens . I am busy with other things right now, but I plan to go over it all, and maybe use this as incentive to add a few more ring interface tests which hopefully will detect all my mistakes here, to increase confidence in this and further work. |
I think this is ready in so far as that I addressed review feedback by @lgoettgens and am not aware of other issues right now. But I'd still feel better if we first had the conformance tests in place to properly check all of these. Thankfully @lgoettgens is working on that. |
I made sure this branch passes the new conformance tests in PR #1880 (I.e. I did run the Nemo tests suite with this branch plus the one in PR #1880 merged, against the code in Nemocas/AbstractAlgebra.jl#1827 and it passed). As such we could also just merge it now. |
Co-authored-by: Lars Göttgens <[email protected]>
Co-authored-by: Lars Göttgens <[email protected]>
6ffb0ad
to
0aa61ad
Compare
0aa61ad
to
ab457ad
Compare
I've restarted the CI tests to verify the conformance tests pass. They do. I don't see a point in waiting for OscarCI to pass again, as they passed before and nothing changed in the code, just in the tests we run. |
Add a bunch of
one!
andneg!
methods. Also usedzero!
,one!
,neg!
in a few more spots. And placed these function in a uniform way into the code based (i.e. these are now always the first three unsafe operations).This is incomplete in so far as there are still types missing a "native"
neg!
(and in some very few cases alsoone!
).Unfortunately this function is not covered by the ring conformance test suite -- we should change that (in AA).