Operators¶
The EllipticOperator protocol and the shipped 1D Laplacian. Implement the protocol to add a PDE; see examples/03_custom_operator.py.
pinn_rk.operators ¶
Classes¶
Laplacian1D ¶
Bases: EllipticOperator
L u = -u_xx on a 1D domain.
Source code in src\pinn_rk\operators.py
LaplacianND ¶
Bases: EllipticOperator
L u = -Δu = -Σ_i ∂²u/∂x_i² on a d-dimensional domain.
Each second derivative is taken separately rather than by summing the diagonal of a full Hessian: only the d diagonal entries are needed, and forming the whole matrix would cost d times as much for values that are then discarded.
Equivalent to Laplacian1D when d = 1, and agrees with it to machine precision.