Package: adlaplaceFem 0.7.1

adlaplaceFem: Finite Element Approximations for Adlaplace

Finite-element approximations for hierarchical models with the adlaplace Laplace approximation framework. Provides tensor-product B-spline FEM ingredients for Matern Gaussian random fields (mass, stiffness, and higher-order Grams), including hierarchical locally refined B-spline bases, design and Gram matrix construction on regular grids, optional terra SpatRaster / SpatVector input, and AD tape builders for random_fem_ssq_* / random_fem_det_*.

Authors:Patrick Brown [aut, cre, cph]

adlaplaceFem_0.7.1.tar.gz
adlaplaceFem_0.7.1.zip(r-4.7-x86_64)adlaplaceFem_0.7.1.zip(r-4.7-arm64)adlaplaceFem_0.7.1.zip(r-4.6-x86_64)adlaplaceFem_0.7.1.zip(r-4.6-arm64)adlaplaceFem_0.7.1.zip(r-4.5-x86_64)
adlaplaceFem_0.7.1.tgz(r-4.6-x86_64)adlaplaceFem_0.7.1.tgz(r-4.6-arm64)adlaplaceFem_0.7.1.tgz(r-4.5-x86_64)adlaplaceFem_0.7.1.tgz(r-4.5-arm64)
adlaplaceFem_0.7.1.tar.gz(r-4.7-arm64)adlaplaceFem_0.7.1.tar.gz(r-4.7-x86_64)adlaplaceFem_0.7.1.tar.gz(r-4.6-arm64)adlaplaceFem_0.7.1.tar.gz(r-4.6-x86_64)
adlaplaceFem_0.7.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
adlaplaceFem/json (API)

# Install 'adlaplaceFem' in R:
install.packages('adlaplaceFem', repos = c('https://eborgnine.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/eborgnine/adlaplace/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

5.26 score 1 stars 22 exports 8 dependencies

Last updated from:e1ec96a880 (on main). Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK214
linux-devel-x86_64OK262
source / vignettesOK297
linux-release-arm64OK199
linux-release-x86_64OK273
macos-release-arm64OK162
macos-release-x86_64OK377
macos-oldrel-arm64OK204
macos-oldrel-x86_64OK347
windows-devel-arm64OK346
windows-devel-x86_64OK319
windows-release-arm64OK329
windows-release-x86_64OK222
windows-oldrel-x86_64OK258
wasm-releaseOK101

Exports:beta_infodesignextra_densityfem_bsplinefem_bspline_1dfem_chol_patternfem_logdet_debugfem_precisionfem_precision_payloadfem_Q_structurehb_basishb_knotshb_summaryhinv_trace_indexmaternmatern_estmatern_fem_covarianceprecisionrandom_inforeplace_varsrsmaterntheta_info

Dependencies:adlaplacedata.tablelatticeMatrixRcppRCppADRcppEigentrustOptim

Loaloa prevalence with FEM Matérn
Data | Knot lines | Fit | Summary | Estimated field

Last update: 2026-09-27
Started: 2026-07-18

FEM Matérn methods: SPDE, B-splines, and covariance comparison
Continuous model: Matérn via Whittle SPDE | $$\operatorname{Cov}\bigl(u(\mathbf{s}),u(\mathbf{s}')\bigr) | Parameterization: range and sd | Finite-element weights and Grams | Derivatives | $$\log\pi(\mathbf{w}\mid\theta) | Quadratic form | $$\frac{\partial}{\partial\theta_k}\Bigl(\mathbf{v}^\top\frac{\partial^2 f}{\partial\mathbf{w},\partial\mathbf{w}^\top}\mathbf{v}\Bigr) | Log-determinant atomic | $$\frac | \operatorname{Tr}(\mathbf{Q}^{-1}\mathbf{M}_j) | $$\frac | Tensor-product B-splines | Hierarchical B-splines | Numerical comparison: Matérn vs FEM | References

Last update: 2026-09-26
Started: 2026-07-18

The FEM quadratic form: closed-form derivatives and how they are implemented
The term | Structure that makes closed forms possible | The coefficient map | The derivatives | The third-order term | What this replaces | Storage and the three primitives | Per-evaluation state | Where AD survives | Wiring into adlaplace | Two modes | Verification | Why the log-determinant is an atomic instead

Last update: 2026-09-25
Started: 2026-09-09

FEM Matérn joint density with adlaplace
FEM ingredients | Hierarchical toy model | Joint density, gradient, and Hessian | Finite-difference checks | Laplace log-likelihood: AD vs finite differences

Last update: 2026-07-22
Started: 2026-07-18

Readme and manuals

Help Manual

Help pageTopics
Tensor-product B-spline FEM ingredients for a 2D Matern GRFfem_bspline fem_bspline,data.frame-method fem_bspline,list-method
One-dimensional linear B-spline FEM (mass and stiffness)fem_bspline_1d
Symbolic LDL pattern for a sparse FEM precision structurefem_chol_pattern
Sparse LDL log-determinant of a FEM precision at given (range, sd)fem_logdet_debug
Assemble FEM Matern precision Q2 or Q3 from Gramsfem_precision
Build random_fem_ssq_* / random_fem_det_* precision payload for adlaplacefem_precision_payload
Structural nonzero pattern for Q2 or Q3 from Gramsfem_Q_structure
Truncated hierarchical B-spline spacehb_basis hb_summary
Hierarchical tensor-product B-spline knot specificationshb_knots
Slots of a FEM quadratic form inside the joint inverse Hessianhinv_trace_index,density_data-method hinv_trace_index-methods
Posterior mean, SD, and simulations of a matern field on a rastermatern_est
Covariance of a FEM Matérn field at data locationsmatern_fem_covariance
Matern FEM spatial random field termbeta_info,matern-method design,matern-method extra_density,matern-method matern matern-class precision,matern-method random_info,matern-method theta_info,matern-method
Replace data-column names in an rsmatern termreplace_vars,rsmatern-method replace_vars-methods
Random-slope Matérn-1/2 (Ornstein-Uhlenbeck) FEM termbeta_info,rsmatern-method design,rsmatern-method extra_density,rsmatern-method precision,rsmatern-method random_info,rsmatern-method rsmatern rsmatern-class theta_info,rsmatern-method