Skip to content

num::operators::laplacian_2d

Defined in header <pde/grid_operators.hpp>

class laplacian_2d final;

5-point Laplacian applied without storing a matrix: \(y \leftarrow \Delta_h x\).

Members

member description
using domain_type = vec<real>
using codomain_type = vec<real>
using laws = law::list<law::self_adjoint>
explicit laplacian_2d(int N)
void apply(const vec<real> &x, vec<real> &y) const
idx rows() const noexcept
idx cols() const noexcept
int N() const noexcept
spmat to_sparse() const Return the operator as a sparse matrix.