bru_mapper_fmesher: Mapper for general 'fmesher' function space objects

View source: R/mappers.R

bru_mapper_fmesherR Documentation

Mapper for general fmesher function space objects

Description

Creates a mapper for general fmesher function space objects.

Usage

bru_mapper_fmesher(mesh)

## S3 method for class 'bru_mapper_fmesher'
ibm_n(mapper, ...)

## S3 method for class 'bru_mapper_fmesher'
ibm_values(mapper, ...)

## S3 method for class 'bru_mapper_fmesher'
ibm_jacobian(mapper, input, ...)

Arguments

mesh

An fmesher object to map, supported by fmesher::fm_basis⁠(mesh, input)⁠ and fmesher::fm_dof(mesh).

mapper

A mapper S3 object, inheriting from bru_mapper.

...

Arguments passed on to other methods

input

Data input for the mapper.

Details

For fmesher before version "0.2.0.9002", fmesher::fm_mesh_1d objects will be handed over to bru_mapper.fm_mesh_1d(), which handles NA inputs for older fmesher versions.

Value

A bru_mapper_fmesher object.

See Also

bru_mapper, bru_mapper_generics

Other mappers: bru_get_mapper(), bru_mapper(), bru_mapper.fm_mesh_1d(), bru_mapper.fm_mesh_2d(), bru_mapper_aggregate(), bru_mapper_collect(), bru_mapper_const(), bru_mapper_factor(), bru_mapper_generics, bru_mapper_harmonics(), bru_mapper_index(), bru_mapper_linear(), bru_mapper_logsumexp(), bru_mapper_marginal(), bru_mapper_matrix(), bru_mapper_mesh_B(), bru_mapper_multi(), bru_mapper_pipe(), bru_mapper_repeat(), bru_mapper_scale(), bru_mapper_shift(), bru_mapper_taylor()

Examples

m <- bru_mapper_fmesher(fmesher::fmexample$mesh)
ibm_n(m)
ibm_eval(m, as.matrix(expand.grid(-2:2, -2:2)), seq_len(ibm_n(m)))


inlabru documentation built on April 3, 2025, 10:54 p.m.