Skip to content

num::pde::backward_euler_matrix

Defined in header <pde/diffusion.hpp>

spmat backward_euler_matrix(int N, double coeff);  // (1)

spmat backward_euler_matrix(const grid2d &grid, double coeff);  // (2)

Construct the backward Euler matrix as a sparse matrix: \(I - c\,\Delta_h\).