orthogonalize function
Orthonormal vectors spanning the same space as some vectors, by the Gram-Schmidt process.
How to write it
orthogonalize(vectors)
- vectors
- The vectors, as rows. Takes a matrix, written as a list of rows.
Examples
orthogonalize([[1, 1], [0, 1]])In the solver,
Open in the solverorthogonalize([[1, 1], [0, 1]])gives[[sqrt(2)/2, sqrt(2)/2], [-sqrt(2)/2, sqrt(2)/2]].
Related functions
- pseudo_inverse
Moore-Penrose pseudo-inverse of a matrix.
- null_space
A basis of the null space of a matrix: the vectors v with A v = 0.
- qr_decomposition
QR decomposition of a matrix: an orthogonal factor and an upper triangular one.
- normalize
A vector scaled to length 1.
- rank
Rank of a matrix: the number of independent rows.
- norm
Length of a vector.