bm_index: Mapper for indexed variables

View source: R/mappers.R

bm_indexR Documentation

Mapper for indexed variables

Description

Create a an indexing mapper

Usage

bm_index(n = 1L, ...)

bru_mapper_index(...)

## S3 method for class 'bm_index'
ibm_invalid_output(mapper, input, state, ...)

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

Arguments

n

Size of a model for bm_index

...

Arguments passed on to other methods

mapper

A mapper S3 object, inheriting from bru_mapper.

input

Data input for the mapper.

state

A vector of latent state values for the mapping, of length ibm_n(mapper, inla_f = FALSE)

See Also

bru_mapper, bru_mapper_generics

Other mappers: bm_aggregate(), bm_collect(), bm_const(), bm_factor(), bm_fmesher(), bm_harmonics(), 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.fm_mesh_2d(), bru_mapper_generics

Examples

m <- bm_index(4)
ibm_eval(m, -2:6, 1:4)

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