Function svd_dim

Source
pub fn svd_dim<T, M>(a: &M, dimensions: usize) -> Result<SvdRec<T>, SvdLibError>
where T: SvdFloat, M: SMat<T>,
Expand description

SVD at desired dimensionality, calls svdLAS2 with the highlighted defaults

svdLAS2(A, dimensions, 0, &[-1.0e-30, 1.0e-30], 1.0e-6, 0)

ยงParameters

  • A: Sparse matrix
  • dimensions: Upper limit of desired number of dimensions, bounded by the matrix shape