Loading
QR decomposition writes A as an orthonormal matrix Q times an upper triangular R. The Gram–Schmidt process builds Q one column at a time, removing from each column its parts along the earlier ones.
. Find the QR decomposition by Gram–Schmidt.
The calculator below opens on this example.
Subtracting the projection on the wrong vector.
Forgetting to normalise.
Multiplying QR again in the algorithm.