3
$\begingroup$

Say I want a QR decomposition of matrix $A$, where orthogonality of $Q$ is with respect to a generic non-degenerate positive-definite bilinear form $\phi$ (in my case, $\phi$ is "defined" by a finite-element mass matrix). This seems like a standard thing one might want to do, so is there a Python implementation out there somewhere (that say, uses Modified Gram-Schmidt with pivoting, or uses Householder Reflections)? My matrix $A$ is tall, thin, and dense.

$\endgroup$

1 Answer 1

4
$\begingroup$

Since the bilinear form is positive definite, you can use a Cholesky decomposition to write $M = W^T W$, where $\phi(x,y) = x^T M y$. Then compute the QR decomposition of a $W$-weighted $A$, i.e., $U R = W A$, and define $Q = W^{-1}U$. You obtain, $Q^T M Q = U^T W^{-T}W^T W W^{-1} U = I$, and $Q R = W^{-1}U R = A$.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.