numpy.linalg.svd()

numpy.linalg.svd

numpy.linalg.svd(a, full_matrices=1, compute_uv=1) [source]

Singular Value Decomposition.

Factors the matrix a as u * np.diag(s) * v, where u and v are unitary and s is a 1-d array of a‘s singular values.

Parameters:

a : (..., M, N) array_like

A real or complex matrix of shape (M, N) .

full_matrices : bo