Hi - does anyone know if it's possible to get the full Q matrix out of QR for a rectangular input matrix? The Lapack user's guide makes it seem possible: "...associated routines are provided to work with Q: xORGQR can generate all or part of Q," (node40) where earlier in the page it's made clear that Q refers to a square matrix. If A is rectangular, then the User's Guide says that Q is made up of Q1 and Q2, where Q1 is the orthogonal basis that spans A and Q2 spans the rest of the space. I need Q2, but if I read the documentation on dorgqr correctly, it seems to only want to make Q1. I suspect it's possible, given the wording in the User's Guide (and also the fact that MATLAB defaults to producing the full square Q for a rectangular A), but can't figure out how to do it. If anyone knows how to get the full Q, I'd really appreciate any info. Or, if not, than any tips on efficient ways to get an orthogonal basis spanning the complement of the space spanned by a rectangular matrix would also be appreciated (one could always fill out A with zeros to make it square and call, e.g., SVD, but that seems rather wastefull).
Thanks very much,
Jon

