dask 2021.10.0

ParametersReturnsWarningsBackRef
svd(a, coerce_signs=True)

Parameters

a : (M, N) Array
coerce_signs : bool

Whether or not to apply sign coercion to singular vectors in order to maintain deterministic results, by default True.

Returns

u : (M, K) Array, unitary / orthogonal

Left-singular vectors of a (in columns) with shape (M, K) where K = min(M, N).

s : (K,) Array, singular values in decreasing order (largest first)

Singular values of a.

v : (K, N) Array, unitary / orthogonal

Right-singular vectors of a (in rows) with shape (K, N) where K = min(M, N).

Compute the singular value decomposition of a matrix.

Warnings

See Also

da.linalg.svd_compressed

Randomized SVD for fully chunked arrays

dask.array.linalg.tsqr

QR factorization for tall-and-skinny arrays

dask.array.utils.svd_flip

Sign normalization for singular vectors

np.linalg.svd

Equivalent NumPy Operation

Examples

This example is valid syntax, but we were not able to check execution
>>> u, s, v = da.linalg.svd(x)  # doctest: +SKIP
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

dask.array.linalg.tsqr

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /dask/array/linalg.py#868
type: <class 'function'>
Commit: