fn
lapack_svd_f32
void lapack_svd_f32(const float * A, int m, int n, bool full_matrices, float * U, float * S, float * Vt, int * info)Single-precision singular value decomposition via divide-and-conquer.
Computes . When full_matrices is
false the thin SVD is returned: ,
, . When true the full
matrices (, )
are returned.
Math
References
LAPACK sgesdd_ (divide-and-conquer driver).
Parameters
Aconst float*Row-major input.
m, nintMatrix dimensions.
full_matricesboolControls thin vs full SVD as described above.
Ufloat*Output matrix (row-major).
Sfloat*Output singular values in descending order, length .
Vtfloat*Output matrix (row-major).
infoint*LAPACK status (
> 0 = SVD did not converge).