Allow logtrapzexp to work on a non-uniform grid
The current implementation of the logtrapzexp
function (performing trapezium rule integration in log-space) currently only works for a fixed grid step size. This MR allows it to work with an array of step sizes, which can be non-uniform.
The Grid
class is also edited to allow marginalisation on potentially non-uniform grids.
A test suite for the logtrapzexp
function is also added.