num::minres¶
Defined in header <linear/solvers/minres.hpp>
template <class Op, class V>
requires math::inner_product_space<V> && math::self_adjoint_operator<Op, V> &&
std::same_as<math::scalar_t<V>, real>
solver_result minres(const Op &A, const V &b, V &x, minres_options options = {});
Solve a symmetric system by MINRES, minimizing \(\|b - A x_k\|_2\). \(A\) must be self-adjoint; it may be indefinite.
Exceptions¶
std::invalid_argument: If dimensions mismatch.