forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-35997: Improve getting matrix entries after permutation in…
… _palp_PM_max() <!-- ^^^^^ 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 --> Modify the _palp_PM_max() to obtain the matrix entry after permutation without make copy of the matrix. @mkoeppe before ``` sage: %timeit -n 10 -r 3 o = lattice_polytope.cross_polytope(3); o._palp_PM_max(); 36.8 ms ± 5.19 ms per loop (mean ± std. dev. of 3 runs, 10 loops each) ``` after ``` sage: %timeit -n 10 -r 3 o = lattice_polytope.cross_polytope(3); o._palp_PM_max(); 4.88 ms ± 2.23 ms per loop (mean ± std. dev. of 3 runs, 10 loops each) ``` <!-- 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". --> <!-- 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. - [x] 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 <!-- 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#35997 Reported by: xuluze Reviewer(s): Matthias Köppe
- Loading branch information
Showing
3 changed files
with
43 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tarball=configure-VERSION.tar.gz | ||
sha1=017780512407f8da87a091c485cf8c7162b5adaf | ||
md5=4e3e25464ee850c2593f16364bd6b206 | ||
cksum=531215747 | ||
sha1=d39abedb0ee7beb3d61b625d4627e10c347320f2 | ||
md5=6a0dcd364b964e10b594339094d64a36 | ||
cksum=2756767966 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
98520945e069c603400cf2ae902a843f7a1bda13 | ||
259402d021bcc64831e1f24b26da34b76820b566 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters