Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Singular value decomposition (singular_value_decomposition)

Singular value decomposition of a matrix: two orthogonal factors and the singular values.

How to write it

singular_value_decomposition(matrix)

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

Examples

  • singular_value_decomposition⁡((2001))=[(1001),(2001),(1001)]\displaystyle \operatorname{singular\_value\_decomposition}\left(\begin{pmatrix} 2 & 0 \\ 0 & 1 \end{pmatrix}\right) = \left[ \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, \begin{pmatrix} 2 & 0 \\ 0 & 1 \end{pmatrix}, \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \right]
    singular_value_decomposition([[2, 0], [0, 1]])

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

    Open in the solver