Allow logtrapzexp to work on a non-uniform grid
Compare changes
Maintenance will be performed on git.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 22 April 2025 starting at approximately 9am PDT. It is expected to take around 30 minutes and there will be several periods of downtime throughout the maintenance. Please address any comments, concerns, or questions to the helpdesk. This maintenance will be upgrading the GitLab database in order to be ready for the migration.
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.