mystified by qr.Q(): what is an orthonormal matrix in "compact" form?

Posted by gappy on Stack Overflow See other posts from Stack Overflow or by gappy
Published on 2010-06-13T05:37:53Z Indexed on 2010/06/13 5:42 UTC
Read the original article Hit count: 240

Filed under:
|
|
|

R has a qr() function, which performs QR decomposition using either LINPACK or LAPACK (in my experience, the latter is 5% faster). The main object returned is a matrix "qr" that contains in the upper triangular matrix R (i.e. R=qr[upper.tri(qr)]). So far so good. The lower triangular part of qr contains Q "in compact form". One can extract Q from the qr decomposition by using qr.Q(). I would like to find the inverse of qr.Q(). In other word, I do have Q and R, and would like to put them in a "qr" object. R is trivial but Q is not. The goal is to apply to it qr.solve(), which is much faster than solve() on large systems.

© Stack Overflow or respective owner

Related posts about r

    Related posts about linear-algebra