cupy.linalg.svd¶
-
cupy.linalg.svd(a, full_matrices=True, compute_uv=True)[source]¶ Singular Value Decomposition.
Factorizes the matrix
aasu * np.diag(s) * v, whereuandvare unitary andsis an one-dimensional array ofa’s singular values.Parameters: - a (cupy.ndarray) – The input matrix with dimension
(M, N). - full_matrices (bool) – If True, it returns u and v with dimensions
(M, M)and(N, N). Otherwise, the dimensions of u and v are respectively(M, K)and(K, N), whereK = min(M, N). - compute_uv (bool) – If
False, it only returns singular values.
Returns: A tuple of
(u, s, v)such thata = u * np.diag(s) * v.Return type: tuple of
cupy.ndarraySee also
- a (cupy.ndarray) – The input matrix with dimension