I'm trying to wrap my head around how QR decomposition can be directly used to find orthogonal bases for the fundamental subspaces.
I know that the bases can be obtained directly from the full QR factorization of a matrix, but I am unsure how to "extract" that information.
What is the best approach for doing so? To make things easier, assume that the starting matrix is $A$ and that the QR decomposition of $A^T=[Q_1 Q_2]R$ and, if needed, $A=[Q_3 Q_4]R$.