Skip to main content

solve_helmholtz_bicgstab

Function solve_helmholtz_bicgstab 

pub fn solve_helmholtz_bicgstab(
    cfg: &HelmholtzConfig,
    rhs: &[Complex64],
    solution: &mut [Complex64],
    workspace: &mut HelmholtzWorkspace,
    max_iters: usize,
    rel_tol: f64,
) -> Result<HelmholtzSolveReport, NumericalError>
Expand description

Solve $(\nabla_h^2 + k^2)\hat{p} = -\hat{s}$ (where rhs is $-\hat{s}$) using BiCGSTAB over caller-owned workspace with zero heap allocations inside the loop.