GramSchmidtprocedure
The Gram-Schmidt procedure is a method for converting a finite sequence of vectors into an orthonormal sequence that spans the same subspace. It is a fundamental tool in numerical linear algebra, used to construct bases for subspaces and to compute QR factorizations of matrices.
In the classical Gram-Schmidt process, given linearly independent vectors a1, a2, ..., an in an inner product
Modified Gram-Schmidt is a numerically more stable variant. It orthogonalizes the current vector against already computed
Applications and connections: Gram-Schmidt underpins the QR factorization A = QR, where Q has orthonormal columns and