Skip to contents

Create a standalone shift mapper that can be used as part of a bm_pipe. If mapper is non-null, the bm_shift() constructor returns bm_pipe(list(mapper = mapper, shift = bm_shift()))

Usage

bm_shift(mapper = NULL)

bru_mapper_shift(...)

Arguments

mapper

If non-NULL, a bru_mapper to be shifted.

...

Arguments passed on to bm_shift()

Examples

m <- bm_shift()
ibm_eval2(m, c(1, 2, 1, 2), 1:4)
#> $offset
#> [1] 2 4 4 6
#> 
#> $jacobian
#> 4 x 4 diagonal matrix of class "ddiMatrix"
#>      [,1] [,2] [,3] [,4]
#> [1,]    1    .    .    .
#> [2,]    .    1    .    .
#> [3,]    .    .    1    .
#> [4,]    .    .    .    1
#>