Illustrative code to build the projector matrix for SPDE models.
Source:R/mesh2projector.R
mesh2projector.Rd
Creates a projector matrix object.
Usage
mesh2projector(
mesh,
loc = NULL,
lattice = NULL,
xlim = NULL,
ylim = NULL,
dims = c(100, 100)
)
Warning
This is just for illustration purpose and one should consider the
efficient functions available in the fmesher package,
e.g. fmesher::fm_evaluator()
and fmesher::fm_basis()
.