num::solve¶
Defined in header <linear/banded/banded.hpp>, <linear/factorization/block_tridiagonal.hpp>, <linear/factorization/cholesky.hpp>, <linear/factorization/factor.hpp>, <linear/factorization/lu.hpp>, <linear/factorization/mixed_lu.hpp>, <linear/factorization/qr.hpp>, <linear/factorization/reuse.hpp>, <linear/factorization/woodbury.hpp>, <linear/solve.hpp>, <linear/solvers/hessenberg_resolvent.hpp>
void solve(const banded_lu_result &f, const vec<real> &b, vec<real> &x); // (1)
void solve(const banded_lu_result &f, const mat<real> &B, mat<real> &X); // (2)
template <class F, class RHS>
RHS solve(const F &factor, const RHS &b)
requires requires(RHS &x); // (3)
template <class F, class RHS>
void solve(detail::transposed_factor<F> factor, const RHS &b, RHS &x); // (4)
template <std::floating_point T>
void solve(const lu_result<T> &f, const std::type_identity_t<vec<T>> &b, vec<T> &x); // (5)
template <std::floating_point T>
void solve(const lu_result<T> &f, const std::type_identity_t<mat<T>> &B, mat<T> &X); // (6)
void solve(const cholesky_result &f, const vec<real> &b, vec<real> &x); // (7)
void solve(const cholesky_result &f, const mat<real> &B, mat<real> &X); // (8)
void solve(const block_lu_factor &factor, const mat<real> &B, mat<real> &X); // (9)
void solve(const block_lu_factor &factor, const vec<real> &b, vec<real> &x); // (10)
void solve(const block_cholesky_factor &factor, const mat<real> &B, mat<real> &X); // (11)
void solve(const block_cholesky_factor &factor, const vec<real> &b, vec<real> &x); // (12)
template <class F, class RHS>
void solve(const similar_factor<F> &Z, const RHS &b, RHS &x); // (13)
void solve(const qr_result &f, const vec<real> &b, vec<real> &x); // (14)
void solve(const mixed_lu &F, const vec<real> &b, vec<real> &x); // (15)
void solve(const mixed_lu &F, const mat<real> &B, mat<real> &X); // (16)
template <class RHS>
friend void solve(const woodbury_solver &W, const RHS &b, RHS &x); // (17)
template <class RHS>
friend void solve(const corrected_factor &Z, const RHS &rhs, RHS &out); // (18)
template <class RHS>
void solve(const suffix_block_lu &Z, const RHS &rhs, RHS &out); // (19)
template <class RHS>
void solve(const suffix_block_cholesky &Z, const RHS &rhs, RHS &out); // (20)
void solve(const hessenberg_shifted_lu &F, const vec<cplx> &b, vec<cplx> &x); // (21)
void solve(const hessenberg_shifted_lu &F, const vec<real> &b, vec<cplx> &x); // (22)
vec<cplx> solve(const hessenberg_shifted_lu &F, const vec<real> &b); // (23)
(1) Solve with a banded LU factor: \(x \leftarrow A^{-1} b\). x may alias b.
(2) Solve with a banded LU factor: \(X \leftarrow A^{-1} B\). X may alias B.
(3) Solve with a factorization: \(x = A^{-1} b\). Allocates.
(4) Undocumented.
(5) Solve with LU factors: \(x \leftarrow A^{-1} b\). x may alias b.
(6) Solve with LU factors: \(X \leftarrow A^{-1} B\). X may alias B.
(7) Solve with a Cholesky factor: \(x \leftarrow A^{-1} b\). x may alias b.
(8) Solve with a Cholesky factor: \(X \leftarrow A^{-1} B\). X may alias B.
(9) Solve with block LU factors: \(X \leftarrow A^{-1} B\).
(10) Solve with block LU factors: \(x \leftarrow A^{-1} b\).
(11) Solve with block Cholesky factors: \(X \leftarrow A^{-1} B\).
(12) Solve with block Cholesky factors: \(x \leftarrow A^{-1} b\).
(13) Undocumented.
(14) Solve a linear least-squares problem: \(x \leftarrow \arg\min_x \|A x - b\|_2\). x may alias b.
(15) Solve to double accuracy with single-precision factors: \(x \leftarrow A^{-1} b\). x may alias b.
(16) Solve to double accuracy with single-precision factors: \(X \leftarrow A^{-1} B\). X may alias B.
(17) Solve with the changed matrix: \(x \leftarrow (A + P Q^T)^{-1} b\). x may alias b.
(18) Undocumented.
(19) Undocumented.
(20) Undocumented.
(21) Solve a shifted system: \(x \leftarrow (s I - A)^{-1} b\). x may alias b.
(22) Solve a shifted system with a real right-hand side: \(x \leftarrow (s I - A)^{-1} b\).
(23) Undocumented.