pub fn compute_svd_dtensor<T>(
matrix: &Mat<T>,
) -> Result<(Mat<T>, Vec<T>, Mat<T>), Error>where
T: CustomNumeric + 'static,Expand description
Compute SVD for DTensor using nalgebra-based TSVD
Supports both f64 and Df64 types. Uses nalgebra TSVD backend for both.
§Errors
The errors of tsvd: Error::EmptyInput, Error::NonFiniteInput
and Error::DecompositionFailed
§Panics
Panics if T is neither f64 nor Df64