Create a pipe mapper, where mappers
is a list of mappers,
and the evaluated output of each mapper is handed as the state to the next
mapper.
The input
format for the ibm_eval
and ibm_jacobian
methods is
a list of inputs, one for each mapper.
See also
bru_mapper, bru_mapper_generics
Other mappers:
bm_aggregate()
,
bm_collect()
,
bm_const()
,
bm_factor()
,
bm_fm_mesh_1d
,
bm_fmesher()
,
bm_harmonics()
,
bm_index()
,
bm_linear()
,
bm_logsumexp()
,
bm_marginal()
,
bm_matrix()
,
bm_mesh_B()
,
bm_multi()
,
bm_repeat()
,
bm_scale()
,
bm_shift()
,
bm_sum()
,
bm_taylor()
,
bru_get_mapper()
,
bru_mapper()
Other specific bm_pipe method implementations:
ibm_eval()
,
ibm_eval2()
,
ibm_jacobian()
,
ibm_n()
,
ibm_n_output()
,
ibm_simplify()
,
ibm_values()
Examples
m <- bm_pipe(list(
scale = bm_scale(),
shift = bm_shift()
))
ibm_eval2(m, input = list(scale = 2, shift = 1:4), state = 1:4)
#> $offset
#> [1] 3 6 9 12
#>
#> $jacobian
#> 4 x 4 diagonal matrix of class "ddiMatrix"
#> [,1] [,2] [,3] [,4]
#> [1,] 2 . . .
#> [2,] . 2 . .
#> [3,] . . 2 .
#> [4,] . . . 2
#>