In the numpy documentation for the qr factorization (https://numpy.org/doc/stable/reference/generated/numpy.linalg.qr.html), the default mode is 'reduced'. I know the theory of the 'complete' mode and expected it to be the default. What does the mode 'reduced' mean mathematically?
I could not find any information about that in the documentation.
Let's summarize the answer given by @stéphane-laurent, so people can find the results more easily:
Let , the QR-decomposition is defined as
.
If , the values of
can be dropped, because the last
rows of
are zero. I.e. we multiply the last
columns of
with zeros. Therefore, we can just drop these columns to get the same result. In order for the dimensions to work out, we also need to remove the rows that are zero (i.e. the last
rows) of
.
We end up with , where
and
.