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

Updated random_diagonal_matrix function so it works for any ring #39374

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Noel-Roemmele
Copy link

@Noel-Roemmele Noel-Roemmele commented Jan 24, 2025

Fixes #24801. Added functionality to random_diagonal_matrix that allows a random matrix to be generated using an arbitrary ring instead of only the rational numbers. If the matrix of rational numbers is requested the integer ring is used in place of the rational ring to keep most of the functionality the same. Also updated the function documentation to reflect this change and added and extra test with the example from issue #24801.

📝 Checklist

  • [ 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.

⌛ Dependencies

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

random_diagonalizable_matrix silently ignores the base ring
2 participants