-
-
Notifications
You must be signed in to change notification settings - Fork 598
Define minimal polynomial for any square matrix over any field #39697
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
base: develop
Are you sure you want to change the base?
Conversation
We could probably use https://flintlib.org/doc/gr_mat.html#c.gr_mat_minpoly_field instead. (but the first step is to convert arbitrary matrix to flint) |
This looks a bit more straightforward:
|
Does flint know how to deal with arbitrary Sage fields? I thought this is not how packages worked... |
You can probably implement a generic wrapper with https://flintlib.org/doc/gr_implementing.html |
Documentation preview for this PR (built with commit a758537; changes) is ready! 🎉 |
Can I really outsource linear algebra over any field to an external package? How does it compute in that field? Sorry, I'm a complete noob in these tehcnical aspects... |
Probably if you write the correct wrappers, I don't know. I haven't looked carefully either. |
This implements a function
minpoly_lin
on theMatrix
class that computes the minimal polynomial of a square matrix over any field, notwithstanding the possible lack of polynomial factorization algorithms.It is slow, which is why I am not overwriting the existing
minpoly
method. More should probably be done to expose this method as an algorithm forminpoly
.Fixes #39696.
📝 Checklist
⌛ Dependencies