Function LU_svx (o2scl_linalg)

O2scl : Function List

template<class mat_t, class vec_t>
int o2scl_linalg::LU_svx(const size_t N, const mat_t &LU, const o2scl::permutation &p, vec_t &x)

Solve a linear system after LU decomposition in place.

These functions solve the square system A x = b in-place using the LU decomposition of A into (LU,p). On input x should contain the right-hand side b, which is replaced by the solution on output.