Skip to content

Faster conversion from numpy array to matrix mod 2#39219

Merged
vbraun merged 2 commits intosagemath:developfrom
user202729:faster-from-numpy
Jan 4, 2025
Merged

Faster conversion from numpy array to matrix mod 2#39219
vbraun merged 2 commits intosagemath:developfrom
user202729:faster-from-numpy

Conversation

@user202729
Copy link
Copy Markdown
Contributor

@user202729 user202729 commented Dec 29, 2024

As in the title. Estimated 50× speedup.

📝 Checklist

  • The title is concise and informative.
  • 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 and checked the documentation preview.

(Reuses the numpy_util module from #38834 for the utility function)

Reverse direction: #39152

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 29, 2024

Documentation preview for this PR (built with commit bab7cd4; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Copy Markdown
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

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

Thank you. LGTM.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 1, 2025
sagemathgh-39219: Faster conversion from numpy array to matrix mod 2
    
As in the title. Estimated 50× speedup.


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.

(Reuses the `numpy_util` module from sagemath#38834 for the utility function)


Reverse direction: sagemath#39152
    
URL: sagemath#39219
Reported by: user202729
Reviewer(s): Travis Scrimshaw
@vbraun vbraun merged commit c3e0637 into sagemath:develop Jan 4, 2025
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.

3 participants