Skip to content
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

Merged
merged 99 commits into from
Aug 27, 2023

Conversation

mkoeppe
Copy link
Member

@mkoeppe mkoeppe commented Aug 11, 2023

Also defining new features sage.libs.linbox, sage.libs.m4ri.

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation accordingly.

⌛ Dependencies

Copy link
Contributor

@dcoudert dcoudert left a 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.

src/sage/matrix/constructor.pyx Outdated Show resolved Hide resolved
src/sage/features/sagemath.py Outdated Show resolved Hide resolved
@@ -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
Copy link
Contributor

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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

``None``

src/sage/probability/probability_distribution.pyx Outdated Show resolved Hide resolved
src/sage/stats/hmm/chmm.pyx Outdated Show resolved Hide resolved
src/sage/stats/hmm/chmm.pyx Outdated Show resolved Hide resolved
src/sage/stats/hmm/distributions.pyx Outdated Show resolved Hide resolved
src/sage/stats/hmm/hmm.pyx Outdated Show resolved Hide resolved
src/sage/stats/time_series.pyx Outdated Show resolved Hide resolved
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]])
Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Member Author

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

Copy link
Contributor

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.

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@dcoudert
Copy link
Contributor

Other cosmetic changes can be done in future PRs.

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 17, 2023

Thanks very much for the patient review.

I've just pushed the changes for your comments that I had already marked as resolved

Copy link
Contributor

@dcoudert dcoudert left a 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.

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 17, 2023

Thanks!

@vbraun
Copy link
Member

vbraun commented Aug 21, 2023

documentation doesn't build

@github-actions
Copy link

Documentation preview for this PR (built with commit 4c4d62f; changes) is ready! 🎉

vbraun pushed a commit to vbraun/sage that referenced this pull request Aug 23, 2023
…orms,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
@vbraun vbraun merged commit f7e9833 into sagemath:develop Aug 27, 2023
8 of 10 checks passed
@mkoeppe mkoeppe added this to the sage-10.2 milestone Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants