demo/cgeneric.R

R <- Sparse(crossprod(diff(diag(10))))
m <- cgeneric("generic0", R = R, param = c(1, 0.01))
all.equal(R, prec(m))

## see ?prior for more

Try the INLAtools package in your browser

Any scripts or data that you put into this service are public.

INLAtools documentation built on Nov. 20, 2025, 5:07 p.m.