Skip to content

Replace custom dsps.utils.trapz with jnp.trapz#127

Open
aphearin wants to merge 1 commit into
mainfrom
trapz_jax
Open

Replace custom dsps.utils.trapz with jnp.trapz#127
aphearin wants to merge 1 commit into
mainfrom
trapz_jax

Conversation

@aphearin
Copy link
Copy Markdown
Collaborator

The function dsps.utils.trapz was originally written before JAX implemented jnp.trapezoid. The custom version in DSPS is based on a lax.scan. This PR replaces the custom implementation with jax.numpy.trapezoid.

Note that there does not exist a corresponding jax.numpy implementation of the custom dsps.utils.cumtrapz function. According to jakevdp in jax-ml/jax#22651, there are no plans to implement this in JAX.

Closes #125.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update dsps.utils.trapz with jnp.trapezoid

1 participant