Create a matrix mapper, for a given number of columns
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_mesh_B()
,
bm_multi()
,
bm_pipe()
,
bm_repeat()
,
bm_scale()
,
bm_shift()
,
bm_sum()
,
bm_taylor()
,
bru_get_mapper()
,
bru_mapper()
Other specific bm_matrix method implementations:
ibm_jacobian()
,
ibm_n()
,
ibm_values()
Examples
m <- bm_matrix(labels = c("a", "b"))
ibm_values(m)
#> [1] a b
#> Levels: a b
ibm_eval2(m, input = matrix(1:6, 3, 2), state = 2:3)
#> $offset
#> [1] 14 19 24
#>
#> $jacobian
#> 3 x 2 Matrix of class "dgeMatrix"
#> a b
#> [1,] 1 4
#> [2,] 2 5
#> [3,] 3 6
#>
m <- bm_matrix(labels = 2L)
ibm_values(m)
#> [1] 1 2
ibm_eval2(m, input = matrix(1:6, 3, 2), state = 2:3)
#> $offset
#> [1] 14 19 24
#>
#> $jacobian
#> 3 x 2 Matrix of class "dgeMatrix"
#> 1 2
#> [1,] 1 4
#> [2,] 2 5
#> [3,] 3 6
#>