pub fn low_rank_approx_ndarray<T>( a: &Array2<T>, k: usize, ) -> LapackResult<Array2<T>>where T: Field + Clone + Zeroable + Real,
Computes a low-rank approximation of a matrix.
Returns A_k = U_k Σ_k V_k^T, the best rank-k approximation in Frobenius norm.
a
k
The rank-k approximation as a matrix