Function SV_solve (o2scl_linalg)

O2scl : Function List

template<class mat_t, class mat2_t, class vec_t, class vec2_t, class vec3_t>
void o2scl_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.