fm_evaluator_helpers: Internal helper functions for mesh field evaluation

fm_evaluator_helpersR Documentation

Internal helper functions for mesh field evaluation

Description

Methods called internally by fm_evaluator() methods.

Usage

fm_evaluator_mesh_2d(
  mesh,
  loc = NULL,
  weights = NULL,
  derivatives = NULL,
  crs = NULL,
  ...
)

fm_evaluator_mesh_1d(
  mesh,
  loc,
  weights = NULL,
  derivatives = NULL,
  method = deprecated(),
  ...
)

Arguments

mesh

An inla.mesh or inla.mesh.1d object.

loc

Projection locations. Can be a matrix, SpatialPoints, SpatialPointsDataFrame, sf, sfc, or sfg object.

weights

Optional weight vector, one weight for each location

derivatives

logical; If true, also return matrices dA and d2A for fm_mesh_1d objects, and dx, dy, dz for fm_mesh_2d.

crs

An optional CRS or inla.CRS object associated with loc and/or lattice.

...

Additional arguments passed on to methods.

method

character; either "default", "nearest", "linear", or "quadratic". With NULL or "default", uses the object definition of the function space. Otherwise overrides the object definition.

Value

A list of evaluator information objects, at least a matrix A and logical vector ok.

Examples

str(fm_evaluator_mesh_2d(fmexample$mesh, loc = fmexample$loc))


fmesher documentation built on Nov. 2, 2023, 5:35 p.m.