I'm currently working on understanding some very old code. They are trying to solve an underdetermined system and the comments say that they want the minimum norm solution.
The system they solve is: $A x = b$, with $A \in \mathbb{R}^{5 \times n} (n > 5)$
Unless I'm mistaken, you can obtain a minimum norm solution via an LQ factorization, for example using the LAPACK function dgels
.
The code instead constructs the matrix
$B = \begin{bmatrix} 2 & A^T \\ A & 0 \end{bmatrix}$
and then solves:
$B \begin{bmatrix} x \\ \tau \end{bmatrix} = \begin{bmatrix} 0 \\ b \end{bmatrix}$
This appears to result in the same minimum norm solution as with an LQ. What is this technique?