JaxAutodiffProvider#
- class cosmicjellyfish.fishermatrix.jaxcosmo_derivatives.JaxAutodiffProvider[source]#
Bases:
_JaxObservableProviderExact forward-mode derivatives of the JAX observables (
jaxcosmobackend).- compute(request)[source]#
Return
{parameter: derivative}forrequest.freeparams.Parameters with an analytic derivative in
request.special_deriv_functionkeep it, exactly as the finite-difference engine does. ThePs_shot-noise parameters are the exception: the legacy closed form differentiates the legacy power spectrum, while this provider must differentiate the JAX one, so they always use the JAX jacobian.