Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

QR decomposition (qr_decomposition)

QR decomposition of a matrix: an orthogonal factor and an upper triangular one.

How to write it

qr_decomposition(matrix)

matrix
A matrix, written as a list of rows. Takes a matrix, written as a list of rows.

Examples

  • qr_decomposition⁡((1001))=[(1001),(1001)]\displaystyle \operatorname{qr\_decomposition}\left(\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}\right) = \left[ \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \right]
    qr_decomposition([[1, 0], [0, 1]])

    In the solver, qr_decomposition([[1, 0], [0, 1]]) gives [[[1, 0], [0, 1]], [[1, 0], [0, 1]]].

    Open in the solver