What is the most efficient way of obtaining the orthogonal column space of a matrix?

In particular, try qr(X).Q * Matrix(I, size(X)...), and you should find that it is much faster than an SVD.

Yes, it’s pretty common to want to slice a Q matrix and we really should provide a fast algorithm for it.

9 Likes