num::pde::poisson2d¶ Defined in header <pde/poisson.hpp> mat<real> poisson2d(const mat<real> &f, int N); Solve the Poisson equation by sine transforms with the exact eigenvalues \((k\pi)^2\): \(-\Delta u = f\).