Algorithm: Gram-Schmidt Orthonormalisation Process
Every basis of a finite-dimensional inner product space can be turned into an orthonormal basis through the following process:
- The first vector in is simply the normalised version of .
- We construct the -th element of so that it is orthogonal to all the resulting basis vectors before it and so that its canonical norm is one.
- Firstly, we ensure that is orthogonal to all by assigning it the following value.