# WrightTools.kit.svd¶

WrightTools.kit.svd(a, i=None)tuple[source]

Singular Value Decomposition.

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

Parameters
• a (array_like) – Input array.

• i (int or slice (optional)) – What singular value “slice” to return. Default is None which returns unitary 2D arrays.

Returns

Decomposed arrays in order u, v, s

Return type

tuple