GramSchmidtorthonormalisatie
Gram-Schmidt orthogonalization is a process in linear algebra that converts a finite set of linearly independent vectors into an orthogonal (or orthonormal) set spanning the same subspace. Named after Jørgen Gram and Erhard Schmidt, it is fundamental for constructing orthogonal bases and is a key step in QR factorization, projections, and least-squares calculations.
Given a sequence of vectors v1, v2, ..., vk in an inner product space, the classical Gram-Schmidt algorithm
Modified Gram-Schmidt is a numerically more stable variant that orthogonalizes against previously computed vectors in a
Output is an orthogonal or orthonormal set {u1, ..., uk} spanning the same subspace as {v1, ..., vk},