-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
sage.{matrix,modules,probability,stats,quadratic_forms,tensor}
: Update # needs
, modularization fixes
#36070
Conversation
8e8fd01
to
04ee0c5
Compare
…absolute cannot be imported
…ts,quadratic_forms,tensor}
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 did my best too review this giant PR but I have certainly missed some details. There are way too many different kinds of improvements and the PR is way too big. Please do smaller PR that are easier to carefully review.
@@ -114,16 +114,17 @@ def get_matrix_class(R, nrows, ncols, sparse, implementation): | |||
|
|||
sage: get_matrix_class(ZZ, 3, 3, False, 'flint') | |||
<class 'sage.matrix.matrix_integer_dense.Matrix_integer_dense'> | |||
sage: get_matrix_class(ZZ, 3, 3, False, 'gap') | |||
sage: get_matrix_class(ZZ, 3, 3, False, 'gap') # needs sage.modules |
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.
gap
is not needed here ?
|
||
- ``eigenvalues`` - the list of desired eigenvalues (default=None). | ||
- ``eigenvalues`` -- the list of desired eigenvalues (default=None). |
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.
``None``
b82e087
to
70eaae3
Compare
70eaae3
to
045d0e7
Compare
sage: import numpy | ||
sage: b=numpy.array(a); b | ||
sage: b = numpy.array(a); b | ||
array([[ 0, 1, 2, 3], | ||
[ 4, 5, 6, 7], | ||
[ 8, 9, 10, 11]]) |
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.
When I test this file, I have the following warning for this block. I don't understand why. Can we avoid this warning ?
sage -t --long --warn-long 20.5 --random-seed=138094706570993025836638675226273367820 src/sage/matrix/matrix1.pyx
**********************************************************************
File "src/sage/matrix/matrix1.pyx", line 729, in sage.matrix.matrix1.Matrix.numpy
Warning: Variable 'b' referenced here was set only in doctest marked '# needs numpy'
b.shape
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.
Interesting. My guess is that this is caused by the # 32-bit
/ # 64-bit
in this doctest. I'll investigate.
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.
Confirmed. That's now #36099
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.
OK. So I conclude the review.
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.
LGTM.
Other cosmetic changes can be done in future PRs. |
Thanks very much for the patient review. I've just pushed the changes for your comments that I had already marked as resolved |
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 agree with these extra commits.
Thanks! |
documentation doesn't build |
101af63
to
193eb10
Compare
193eb10
to
4c4d62f
Compare
Documentation preview for this PR (built with commit 4c4d62f; changes) is ready! 🎉 |
sagemathgh-36070: `sage.{matrix,modules,probability,stats,quadratic_forms,tensor}`: Update `# needs`, modularization fixes <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> Also defining new features `sage.libs.linbox`, `sage.libs.m4ri`. <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36070 Reported by: Matthias Köppe Reviewer(s): David Coudert, Matthias Köppe
Also defining new features
sage.libs.linbox
,sage.libs.m4ri
.📝 Checklist
⌛ Dependencies