Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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⁡((1101))=(2222−2222)\displaystyle \operatorname{orthogonalize}\left(\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}\right) = \begin{pmatrix} \frac{\sqrt{2}}{2} & \frac{\sqrt{2}}{2} \\ -\frac{\sqrt{2}}{2} & \frac{\sqrt{2}}{2} \end{pmatrix}
    orthogonalize([[1, 1], [0, 1]])

    In the solver, orthogonalize([[1, 1], [0, 1]]) gives [[sqrt(2)/2, sqrt(2)/2], [-sqrt(2)/2, sqrt(2)/2]].

    Open in the solver
  • 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.