Function SV_solve (o2scl_linalg)¶
-
template<class
mat_t
, classmat2_t
, classvec_t
, classvec2_t
, classvec3_t
>
voido2scl_linalg
::
SV_solve
(size_t M, size_t N, mat_t &U, mat2_t &V, vec_t &S, vec2_t &b, vec3_t &x)¶ Solve the system A x = b using the SV decomposition.
Solves a linear system using the output of SV_decomp(). Only non-zero singular values are used in computing solution. In the over-determined case, \( M>N \), the system is solved in the least-squares sense.