# Row reduction of a matrix (row_reduce)

Reduced row echelon form of a matrix.

## How to write it

### row_reduce(matrix)

**matrix**

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

## Examples

- $\displaystyle \operatorname{rref} \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix} = \begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 2 \end{pmatrix}$

  `row_reduce([[1, 2, 3], [4, 5, 6]])`

  In the solver, `row_reduce([[1, 2, 3], [4, 5, 6]])` gives `[[1, 0, -1], [0, 1, 2]]`.

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

## Related functions

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

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

  Rank of a matrix: the number of independent rows.
- [singular_value_decomposition](https://hilberon.com/library/singular_value_decomposition)

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

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

  The singular values of a matrix.
- [pseudo_inverse](https://hilberon.com/library/pseudo_inverse)

  Moore-Penrose pseudo-inverse of a matrix.

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