Find the orthogonal matrix Q and upper triangular matrix R that satisfy A=QR.
Step 2.
Using the obtained Q from QR decomposition to compute the projection P:=QQ∗. Since Ax∗=Pb, it follows that QRx∗=QQ∗b, and by multiplying the left side of both sides by Q∗, we derive Rx∗=Q∗b.
Step 3.
Calculate y:=Q∗b to get Rx∗=y.
Step 4. Back substitution
Since R is an upper triangular matrix, solve for x∗ in equation Rx∗=y using back substitution.