-
Notifications
You must be signed in to change notification settings - Fork 367
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
BLAS-like kernel for symmetric updates in LDL factorization without pivoting #31
Comments
Seconding this, but I would suggest further generalizing from diagonal |
@poulson @chriscoey Can you elaborate more on what you have in mind, since I'm unfamiliar with this operation? Specifically, I'm interested in knowing the structure of A in |
An LDL factorization is like a Cholesky factorization, but for a matrix that is symmetric but not necessarily positive definite. L is unit lower triangular and D is diagonal.
… On Apr 26, 2019, at 12:35 PM, Field G. Van Zee ***@***.***> wrote:
@poulson <https://github.com/poulson> @chriscoey <https://github.com/chriscoey> Can you elaborate more on what you have in mind, since I'm unfamiliar with this operation?
Specifically, I'm interested in knowing the structure of A in C += alpha A (D A)^T. (Also, what is an LDL factorization? It's not clear to me how this relates to your request, or if it is strictly unnecessary background / context.)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#31 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABLLYJY3726HZCG6KVBG6ULPSM4MXANCNFSM4BM5AJUA>.
|
@rvdg Thanks, Robert. So is a real domain LDL factorization specified as |
@fgvanzee yes. The updates in question are the A -= L D L^T updates for A11, A21, and A22 (depending on variant). @poulson I implemented C = A D B multiplications (with D diagonal) in TBLIS (interface and implementation). C = A B D is also possible. It should be possible to port this to BLIS and also extend to @chriscoey we had an undergraduate working on general 3-matrix multiplication. @rvdg did that end up as a usable product? |
@fgvanzee Yes, Robert (@rvdg) already clarified. Such factorizations are especially useful for symmetric quasi-(semi)definite matrices, which are, up to permutation, of the form |
I still haven't seen anyone relate |
Nevermind, I see now that they are equivalent. EDIT: No, I take that back. I'm still in doubt. |
Let This may seem like minutae, but I like to understand the operation before I think about implementing it. Note: While I appreciate that there are sometimes rich stories to tell about the applications that employ these operations, I actually don't need to know how the operation is used (it just clutters my brain and doesn't stick anyway). I happily leave such knowledge-keeping to people like @poulson and @devinamatthews. :) |
Hi Field, Think of an |
@poulson I've never heard of a pivoted Cholesky factorization, but I get the idea! |
@fgvanzee The diagonal entries you divide by are sometimes called pivots even if you didn't permute. Per the other question: diagonally-pivoted Cholesky is useful for computing a rank-revealing factorization of a Hermitian positive semi-definite matrix. |
@poulson Ah, thanks for that clarification. I'd never encountered this alternate instance/usage of "pivot." Good to know. (The President might say I am a fake linear algebraist. Although I think he would struggle to even pronounce "algebraist" correctly.) |
The D of an LDL' factorization is actually NOT diagonal.
|
@pauldj Quasi-diagonal 'D" -- which I find useful to refer to as 'B', as in LBL -- is only needed for the general symmetric/Hermitian-indefinite case. It is provably not needed for symmetric quasi-definite matrices. Indeed, most Interior Point Methods have highly indefinite, highly ill-conditioned sparse systems that they factor with LDL with diagonal D. |
I have been looking for an open source implementation of this myself. Intel MKL has two routines to compute A * B * A^T, where A is a general matrix, and B is Hermitian (NOT necessarily positive definite). |
The original proposal to add an extension to I personally would be very interested to have this functionality available. One big use case is for Generalized Linear Models which are fit by an iterative solver. The hessian - required by 2nd order/Newton optimization methods - is given by |
There is a long history of proposals to include simple modifications of
?syrk
and?herk
to supportC += alpha A (D A)^T
, where D is diagonal. This kernel turns out to be important for Interior Point Methods, which often make use of LDL factorizations (without pivoting) of modified saddle-point systems.Does such a routine already exist in BLIS? If not, is there a good place to start for adding support? Or a preferred name/convention?
The text was updated successfully, but these errors were encountered: