Skip to contents

Implementations must return a list with elements offset and jacobian. The input contents must be in a format accepted by ibm_jacobian() for the mapper.

Usage

ibm_eval2(mapper, input, state = NULL, ...)

# Default S3 method
ibm_eval2(mapper, input, state, ...)

# S3 method for class 'bm_pipe'
ibm_eval2(mapper, input, state = NULL, ...)

Arguments

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)

...

Arguments passed on to other methods

Methods (by class)

  • ibm_eval2(default): Calls jacobian <- ibm_jacobian(...) and offset <- ibm_eval(..., jacobian = jacobian) and returns a list with elements offset and jacobian, as needed by ibm_linear.default() and similar methods. Mapper classes can implement their own ibm_eval2 method if joint construction of evaluation and Jacobian is more efficient than separate or sequential construction.

See also