cr.sparse.la.singular_values

cr.sparse.la.singular_values(A)[source]

Returns the singular values of a matrix

Parameters

A (jax.numpy.ndarray) – Input matrix of size (M, N) where M is the dimension of the ambient vector space and N is the number of vectors in A

Returns

The list of singular values

Return type

(jax.numpy.ndarray)

Examples

>>> key = random.PRNGKey(0)
>>> A = random.normal(key, (20, 10))
>>> print(singular_values(A))
[6.6780386  6.19980196 5.65133988 4.89395458 4.49728071 3.9139061
 3.50887351 2.66701591 2.12520081 1.63708146]