Learn R Programming

fmesher (version 0.1.7)

fm_evaluator_helpers: 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(), ... )

Value

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

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.

Examples

Run this code
str(fm_evaluator_mesh_2d(fmexample$mesh, loc = fmexample$loc))

Run the code above in your browser using DataLab