Computes the precision matrix for all vertices for a Whittle-Matérn field.
spde_precision(kappa, tau, alpha, graph, BC = 1, build = TRUE)
Precision matrix or list.
Range parameter.
Precision parameter.
Smoothness parameter (1 or 2).
A metric_graph
object.
Set boundary conditions for degree=1 vertices. BC =0 gives Neumann boundary conditions and BC=1 gives stationary boundary conditions.
If TRUE
, the precision matrix is returned. Otherwise a list
list(i,j,x, nv) is returned.