-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
isPositiveSemiDefinite not accessible #10332
Comments
comment:2
I went down a rabbit hole with the cholesky inverse and wound up here. The inverse of a positive-definite matrix can actually be computed a tiiiiny bit faster through the If we modify the Note also that some people have asked for square roots of PSD matrices in #23424 and #25464. Right now that's only implemented for positive-definite matrices, due to the aforementioned limitation of the LDLT factorization, so we could potentially improve that too. |
comment:3
I'm slowly working on a pivoted LDLT factorization at http://gitweb.michael.orlitzky.com/?p=sage.d.git;a=blob;f=mjo/ldlt.py At some point I will have to carefully check (unless someone has a reference) how it can be used to determine positive-semidefiniteness, especially with complex matrices. |
Branch: u/mjo/ticket/10332 |
Author: Michael Orlitzky |
Commit: |
comment:4
This is nearing presentability. My branch has a numerically stable block-LDLT factorization that works for indefinite matrices and in inexact arithmetic. The cited paper shows why we can use it to determine positive-semidefiniteness: each 2x2 diagonal block corresponds to one positive and one negative eigenvalue, and Sylvester's inertia theorem handles the rest.. I've added an Compared to
This could conceivably also be used to speed up |
comment:5
Since I haven't changed anything in four months I guess this is ready for review. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:8
Rebased onto develop. |
comment:9
matrix2.pyx is long overdue for splitting, it's 670K !!! (unless we aim for Guinness Book of Records, of course). |
comment:10
otherwise, OK. |
Reviewer: Dima Pasechnik |
comment:11
Thanks! |
Changed branch from u/mjo/ticket/10332 to |
I would like to test rational matrices for semidefinite positiveness. There is such a function in linbox, apparently (isPositiveSemiDefinite, from is-positive-semidefinite.h), but it is not accessible from Sage.
CC: @orlitzky @kliem @mwageringel @dimpase @rbeezer
Component: linear algebra
Keywords: psd, semidefinite positive
Author: Michael Orlitzky
Branch/Commit:
909c1e1
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/10332
The text was updated successfully, but these errors were encountered: