# schur_decomposition function

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

## How to write it

### schur_decomposition(matrix)

**matrix**

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

## Examples

- $\displaystyle \operatorname{schur\_decomposition}\left(\begin{pmatrix} 1 & 2 \\ 0 & 3 \end{pmatrix}\right) = \left[ \begin{pmatrix} 1.0 & 0.0 \\ 0.0 & 1.0 \end{pmatrix}, \begin{pmatrix} 1.0 & 2.0 \\ 0.0 & 3.0 \end{pmatrix} \right]$

  `schur_decomposition([[1, 2], [0, 3]])`

  In the solver, `schur_decomposition([[1, 2], [0, 3]])` gives `[[[1.0, 0.0], [0.0, 1.0]], [[1.0, 2.0], [0.0, 3.0]]]`.

  [Open in the solver](https://hilberon.com/?q=schur_decomposition%28%5B%5B1%2C%202%5D%2C%20%5B0%2C%203%5D%5D%29)

## Related functions

- [singular_value_decomposition](https://hilberon.com/library/singular_value_decomposition)

  Singular value decomposition of a matrix: two orthogonal factors and the singular values.
- [smith_decomposition](https://hilberon.com/library/smith_decomposition)

  Smith normal form of an integer matrix, with the two matrices that reach it.
- [qr_decomposition](https://hilberon.com/library/qr_decomposition)

  QR decomposition of a matrix: an orthogonal factor and an upper triangular one.
- [cholesky_decomposition](https://hilberon.com/library/cholesky_decomposition)

  Cholesky decomposition of a symmetric positive definite matrix.
- [lu_decomposition](https://hilberon.com/library/lu_decomposition)

  LU decomposition of a matrix: the lower and upper factors and the row order.
- [jordan_decomposition](https://hilberon.com/library/jordan_decomposition)

  Jordan decomposition of a square matrix: the matrix of generalized eigenvectors and the Jordan form.

---
Source: https://hilberon.com/library/schur_decomposition
