Skip to content

num::laplacian_stencil_2d

Defined in header <pde/stencil.hpp>

template <typename T>
void laplacian_stencil_2d(const vec<T> &x, vec<T> &y, int N);

\(y = h^2 \Delta_h x\) by the 5-point stencil, with zero Dirichlet boundaries.