scipy.linalg.svdvals(a, overwrite_a=False, check_finite=True)[source]

Compute singular values of a matrix.

Parameters :

a : (M, N) array_like

Matrix to decompose.

overwrite_a : bool, optional

Whether to overwrite a; may improve performance. Default is False.

check_finite : boolean, optional

Whether to check the input matrixes contain only finite numbers. Disabling may give a performance gain, but may result to problems (crashes, non-termination) if the inputs do contain infinities or NaNs.

Returns :

s : (min(M, N),) ndarray

The singular values, sorted in decreasing order.

Raises :

LinAlgError :

If SVD computation does not converge.

See also

Compute the full singular value decomposition of a matrix.
Construct the Sigma matrix, given the vector s.

Previous topic


Next topic