TMB Documentation  v1.9.11
Classes | Functions
R_inla Namespace Reference

SPDE methods from INLA R-package . More...

Classes

struct  spde_aniso_t
 Object containing all elements of an anisotropic SPDE object, i.e. eqn (20) in Lindgren et al. More...
 
struct  spde_t
 Object containing all elements of an SPDE object, i.e. eqn (10) in Lindgren et al. More...
 

Functions

template<class Type >
SparseMatrix< Type > Q_spde (spde_t< Type > spde, Type kappa)
 
template<class Type >
SparseMatrix< Type > Q_spde (spde_aniso_t< Type > spde, Type kappa, matrix< Type > H)
 

Detailed Description

SPDE methods from INLA R-package .

Constructs precission matrix Q of the type defined in Lindgren et al. (2011). Requires RINLA package to build stuff. Q built this way can be used in GMRF_t.

Function Documentation

§ Q_spde() [1/2]

template<class Type >
SparseMatrix<Type> R_inla::Q_spde ( spde_t< Type >  spde,
Type  kappa 
)

Precision matrix eqn (10) in Lindgren et al. (2011)

Examples:
spde.cpp, spde_aniso.cpp, spde_aniso_speedup.cpp, and TMBad/spde_epsilon.cpp.

Definition at line 35 of file R_inla.hpp.

§ Q_spde() [2/2]

template<class Type >
SparseMatrix<Type> R_inla::Q_spde ( spde_aniso_t< Type >  spde,
Type  kappa,
matrix< Type >  H 
)

Precision matrix for the anisotropic case, eqn (20) in Lindgren et al. (2011)

Definition at line 71 of file R_inla.hpp.

License: GPL v2