Fetch the last gradient created by running an likelihood. This
errors if the last call to dust_likelihood_run did not use
adjoint = TRUE
. The first time you call this (after a
particular set of parameters) it will trigger running the reverse
model.
Arguments
- obj
A
dust_filter
object, created by dust_filter_create or adust_unfilter
object created by dust_unfilter_create- index_group
An optional vector of group indices to run the calculation for. You can use this to run a subset of possible groups, once
obj
is initialised (this argument must beNULL
on the first call).