Learn R Programming

fmesher (version 0.3.0)

fm_basis_helpers: Internal helper functions for mesh field evaluation

Description

Methods called internally by fm_basis() methods.

Usage

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

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

Value

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

Arguments

loc

A location/value information object (numeric, matrix, sf, fm_bary, etc, depending on the class of x)

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.

...

Passed on to submethods

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_basis_mesh_2d(fmexample$mesh, loc = fmexample$loc))

Run the code above in your browser using DataLab