.. _sphx_glr_api_gallery_linalg_svd:
Singular value decomposition
-----------------------------
SVD via :func:`numpy.linalg.svd` and the Eckart-Young best low-rank approximation.
Also the Moore-Penrose pseudoinverse and minimum-norm least squares.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/linalg/svd/images/thumb/sphx_glr_plot_01_svd_thumb.png
:alt:
:doc:`/api/gallery/linalg/svd/plot_01_svd`
.. raw:: html
Eckart-Young: the best low-rank approximation from the SVD
.. raw:: html
.. only:: html
.. image:: /api/gallery/linalg/svd/images/thumb/sphx_glr_plot_02_moore_penrose_pseudoinverse_thumb.png
:alt:
:doc:`/api/gallery/linalg/svd/plot_02_moore_penrose_pseudoinverse`
.. raw:: html
The Moore-Penrose pseudoinverse
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/linalg/svd/plot_01_svd
/api/gallery/linalg/svd/plot_02_moore_penrose_pseudoinverse