num::solve_batch¶
Defined in header <linear/solvers/hessenberg_resolvent.hpp>
array<vec<cplx>> solve_batch(const hessenberg_resolvent &R, const array<cplx> &shifts,
const vec<real> &b); // (1)
array<array<vec<cplx>>> solve_batch(const hessenberg_resolvent &R,
const array<cplx> &shifts,
const array<vec<real>> &rhs_list); // (2)
(1) Solve at many shifts in parallel: \((s_k I - A)^{-1} b\).
(2) Solve at many shifts for many right-hand sides: \((s_k I - A)^{-1} b_j\), indexed [shift][rhs].