Create a constant mapper
Usage
bm_const()
bru_mapper_const()
# S3 method for class 'bm_const'
ibm_n(mapper, ...)
# S3 method for class 'bm_const'
ibm_values(mapper, ...)
# S3 method for class 'bm_const'
ibm_jacobian(mapper, input, ...)
# S3 method for class 'bm_const'
ibm_eval(mapper, input, state = NULL, ...)
See also
bru_mapper, bru_mapper_generics
Other mappers:
bm_aggregate()
,
bm_collect()
,
bm_factor()
,
bm_fmesher()
,
bm_harmonics()
,
bm_index()
,
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_const()
ibm_eval2(m, input = 1:4)
#> $offset
#> [1] 1 2 3 4
#>
#> $jacobian
#> 4 x 0 sparse Matrix of class "dgCMatrix"
#>
#> [1,]
#> [2,]
#> [3,]
#> [4,]
#>