num::crank_nicolson_adi¶
Defined in header <pde/adi.hpp>
struct crank_nicolson_adi;
Crank--Nicolson time stepping by alternating direction implicit sweeps on an \(N \times N\) grid.
Members¶
| member | description |
|---|---|
int N = 0 |
|
double dt = 0.0 |
|
double h = 0.0 |
|
crank_nicolson_adi() = default |
|
crank_nicolson_adi(int N_, double dt_, double h_) |
|
void sweep(vec<cplx> &psi, bool x_axis, double tau) const |