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 INLA and inlabru packages,
e.g. inlabru::fm_evaluator
.