find integral solutions to matrix equations over PIDs#38019
Merged
vbraun merged 4 commits intosagemath:developfrom Jun 22, 2024
Merged
Conversation
|
Documentation preview for this PR (built with commit f158c4b; changes) is ready! 🎉 |
mkoeppe
reviewed
May 17, 2024
mkoeppe
reviewed
May 17, 2024
03779b6 to
f158c4b
Compare
Member
Author
|
Thanks, all done. |
Contributor
|
Of course, the same can be done with a weaker normal form, the Hermite form. matrix_integer_dense has many algorithm options for that one... |
…_smith_form SageMath version 10.4.beta9, Release Date: 2024-06-09
Member
Author
|
That's a good suggestion, thanks. I gave it a try. |
vbraun
pushed a commit
to vbraun/sage
that referenced
this pull request
Jun 16, 2024
sagemathgh-38019: find integral solutions to matrix equations over PIDs Even for matrices explicitly defined over ℤ, the `.solve_left()` and `.solve_right()` methods may return solutions over ℚ. In this patch, we add an optional flag `integral=` to these methods which forces the computation of an integral solution if one exists (and throws an exception otherwise). The algorithm is completely standard, using the (pre-existing) `.smith_form()` method, but so far users had to implement the rest of the solution method on their own each time. Computing integral solutions to underdetermined systems is a common task when working with lattices. URL: sagemath#38019 Reported by: Lorenz Panny Reviewer(s): Matthias Köppe
vbraun
pushed a commit
to vbraun/sage
that referenced
this pull request
Jun 16, 2024
sagemathgh-38019: find integral solutions to matrix equations over PIDs Even for matrices explicitly defined over ℤ, the `.solve_left()` and `.solve_right()` methods may return solutions over ℚ. In this patch, we add an optional flag `integral=` to these methods which forces the computation of an integral solution if one exists (and throws an exception otherwise). The algorithm is completely standard, using the (pre-existing) `.smith_form()` method, but so far users had to implement the rest of the solution method on their own each time. Computing integral solutions to underdetermined systems is a common task when working with lattices. URL: sagemath#38019 Reported by: Lorenz Panny Reviewer(s): Matthias Köppe
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Even for matrices explicitly defined over ℤ, the
.solve_left()and.solve_right()methods may return solutions over ℚ. In this patch, we add an optional flagintegral=to these methods which forces the computation of an integral solution if one exists (and throws an exception otherwise).The algorithm is completely standard, using the (pre-existing)
.smith_form()method, but so far users had to implement the rest of the solution method on their own each time.Computing integral solutions to underdetermined systems is a common task when working with lattices.