num::hessenberg_shifted_solve¶
Defined in header <linear/factorization/hessenberg.hpp>
template <std::floating_point T, class Index>
void hessenberg_shifted_solve(std::complex<T> *y, const T *H, std::complex<T> shift,
const std::complex<T> *b, idx n, std::complex<T> *work,
Index *piv) noexcept; // (1)
void hessenberg_shifted_solve(const mat<real> &H, cplx shift, const vec<cplx> &b_tilde,
vec<cplx> &y, array<cplx> &M_buf, array<idx> &pivots); // (2)
(1) Solve a shifted Hessenberg system: \(y \leftarrow (s I - H)^{-1} b\).
(2) Solve a shifted Hessenberg system: \(y \leftarrow (s I - H)^{-1} \tilde{b}\), \(O(n^2)\). M_buf and pivots are reusable scratch.