Skip to content

num::complex_tri_diag

Defined in header <linear/factorization/tridiag_complex.hpp>

struct complex_tri_diag;

Factor of a complex tridiagonal matrix with constant diagonals: \(a x_{k-1} + b x_k + c x_{k+1} = d_k\). The coefficients \(a, b, c\) are constant.

Members

member description
using cplx = std::complex<double>
array<cplx> c_mod
array<cplx> inv_b
int n = 0
cplx a_coeff = {}
void factor(int n_, cplx a_, cplx b_, cplx c_) Factor an \(n \times n\) system with coefficients \(a, b, c\).
void solve(array<cplx> &d) const Solve in place: \(d \leftarrow T^{-1} d\).