[Numpy-discussion] Truncated Singular value decomposition

Konrad Hinsen hinsen at cnrs-orleans.fr
Mon Jan 28 08:22:03 EST 2002

Nils Wagner <nwagner at mecha.uni-stuttgart.de> writes:

> V,S,WT = singular_value_decomposition(Z) ?
> I am interested in a low rank approximation of Z.

The singular values in S are sorted by decreasing order of magnitude,
so you just replace as many "small" ones by zero as you wish, and
multiply the three matrices back together.

Konrad Hinsen                            | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-
Rue Charles Sadron                       | Fax:  +33-
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais

More information about the NumPy-Discussion mailing list