Skip to main content

svd_values

Function svd_values 

Source
pub fn svd_values<B: Backend, T: LinalgScalar>(
    x: &Array<B, T>,
    subset_by_index: Option<(usize, usize)>,
    algorithm: Option<SvdAlgorithm>,
) -> Array<B, T::Real>
Expand description

The singular values of each matrix in descending order (lax.linalg.svd with compute_uv=False), only those of indices start..end with subset_by_index (differentiable), by algorithm (as in svd).

ยงPanics

Panics if x is not a batch of matrices, or the range is out of bounds.