Creates a mapper for 2D fm_mesh_2d
objects
Usage
# S3 method for class 'fm_mesh_2d'
bru_mapper(mesh, ...)
# S3 method for class 'bru_mapper_fm_mesh_2d'
ibm_n(mapper, ...)
# S3 method for class 'bru_mapper_fm_mesh_2d'
ibm_values(mapper, ...)
# S3 method for class 'bru_mapper_fm_mesh_2d'
ibm_jacobian(mapper, input, ...)
# S3 method for class 'bru_mapper_inla_mesh_2d'
ibm_n(mapper, ...)
# S3 method for class 'bru_mapper_inla_mesh_2d'
ibm_values(mapper, ...)
# S3 method for class 'bru_mapper_inla_mesh_2d'
ibm_jacobian(mapper, input, ...)
Value
A bru_mapper_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:
bru_get_mapper()
,
bru_mapper()
,
bru_mapper.fm_mesh_1d()
,
bru_mapper_aggregate()
,
bru_mapper_collect()
,
bru_mapper_const()
,
bru_mapper_factor()
,
bru_mapper_fmesher()
,
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::fmexample$mesh)
ibm_n(m)
#> [1] 279
ibm_eval(m, as.matrix(expand.grid(-2:2, -2:2)), seq_len(ibm_n(m)))
#> [1] 250.74364 79.50113 56.07494 99.08437 272.10681 101.93314 138.22942
#> [8] 126.04646 184.52763 62.06892 129.09019 139.32017 134.69889 104.56584
#> [15] 146.74441 144.17599 139.89904 164.80512 140.63623 195.96047 117.63412
#> [22] 178.67407 148.32454 169.81494 219.07025