num::operators::laplacian_2d¶
Defined in header <pde/grid_operators.hpp>
class laplacian_2d final;
mat-free 2D discrete 5-point Laplacian operator with spmat materialization.
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 |
Materialize the 5-point discrete Laplacian as an assembled CSR spmat. |