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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

unify input of matrices and vectors #35685

Merged
merged 2 commits into from
Jun 3, 2023

Conversation

dkrenn
Copy link
Contributor

@dkrenn dkrenn commented May 26, 2023

For recognizable series the input is handled differently for matrices and vectors. This easy patch unifies this.

馃摑 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.

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

LGTM modulo a minor speed point with making two copies of the matrix (the second one being made with immutable).. You simply can change

-mu = dict((a, immutable(Matrix(M))) for a, M in mu.items())
+mu = dict((a, Matrix(M, immutable=True)) for a, M in mu.items())

Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
@github-actions
Copy link

Documentation preview for this PR (built with commit a10ce8c) is ready! 馃帀

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

Indeed. Just cc me on any followup tickets once its ready.

@vbraun vbraun merged commit a8c3d77 into sagemath:develop Jun 3, 2023
8 of 9 checks passed
@mkoeppe mkoeppe added this to the sage-10.1 milestone Jun 3, 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

4 participants