bm_fm_mesh_2d: Mapper for 'fm_mesh_2d'

bru_mapper.fm_mesh_2dR Documentation

Mapper for fm_mesh_2d

Description

Creates a mapper for 2D fm_mesh_2d objects. Equivalent to calling bm_fmesher().

Usage

## S3 method for class 'fm_mesh_2d'
bru_mapper(mesh, ...)

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

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

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

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

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

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

Arguments

mesh

An fm_mesh_2d object to use as a mapper

...

Arguments passed on to other methods

mapper

A mapper S3 object, inheriting from bru_mapper.

input

Data input for the mapper.

Value

A bm_fmesher object. Note: Prior to version ⁠2.12.0.9021⁠, this was a bru_mapper_fm_mesh_2d object. Also see the note for bru_mapper.fm_mesh_1d().

See Also

bru_mapper, bru_mapper_generics

Other mappers: bm_aggregate(), bm_collect(), bm_const(), bm_factor(), bm_fmesher(), bm_harmonics(), bm_index(), bm_linear(), bm_logsumexp(), bm_marginal(), bm_matrix(), bm_mesh_B(), bm_multi(), bm_pipe(), bm_repeat(), bm_scale(), bm_shift(), bm_sum(), bm_taylor(), bru_get_mapper(), bru_mapper(), bru_mapper.fm_mesh_1d(), bru_mapper_generics

Examples

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


inlabru-org/inlabru documentation built on July 17, 2025, 2:11 a.m.