Learn R Programming

fmesher (version 0.7.0)

fm_int_multi_sampler: Multi-domain sampler integration

Description

Combine integration over different domains

Usage

fm_int_multi_sampler(domain, samplers, ..., extra = NULL)

Value

An object with integration points and weights

Arguments

domain

A list of named domains

samplers

A named list of samplers

...

Passed on to each fm_int() call.

extra

Optional character vector with names of variables other than the integration domains to be included from the samplers. If NULL (default), all additional variables are included.

Examples

Run this code
fm_int_multi_sampler(
  domain = list(x = fm_mesh_1d(1:4), y = 11:12),
  samplers = tibble::tibble(
    x = rbind(c(1, 3), c(2, 4)),
    y = c(12, 11)
  )
)

Run the code above in your browser using DataLab