marius311 / CMBLensing.jl

The automatically differentiable and GPU-compatible toolkit for CMB analysis.
https://cosmicmar.com/CMBLensing.jl
Other
52 stars 10 forks source link

Add gradient optional arg to hmc_step #56

Closed b-thorne closed 3 years ago

b-thorne commented 3 years ago

I need this to be able to use the same hmc_step for the parameter sampling, as this requires a more specialized gradient function that the default symplectic_integrate one.

marius311 commented 3 years ago

Presumably this is because of needing to take real part? Maybe we can fix that eventually...