Extend API slightly: Allow/encourage dispatch on `ADGradientWrapper` and maybe expose an easy way to "remake"(?) an ADWrapper with a slightly modified wrapped LogDensityProblem. #20
It would be nice to be able to dispatch on wrapped logdensity as e.g. here, but the source code says "[The abstract type ADGradientWrapper] is an implementation helper, not part of the API.", which sounds like one shouldn't dispatch on that type?
Also, it would be nice (i.e. convenient for me related to this issue), if based on some ADGradientWrapper, one could make another one just like it, but with the underlying logdensity replaced.
See above, sorry for the long title.
It would be nice to be able to dispatch on wrapped logdensity as e.g. here, but the source code says "[The abstract type ADGradientWrapper] is an implementation helper, not part of the API.", which sounds like one shouldn't dispatch on that type?
Also, it would be nice (i.e. convenient for me related to this issue), if based on some ADGradientWrapper, one could make another one just like it, but with the underlying logdensity replaced.