Skip to content

Commit

Permalink
BUG: add vectorize
Browse files Browse the repository at this point in the history
  • Loading branch information
ColmTalbot committed Oct 18, 2024
1 parent d6e975c commit 82617f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spexial/_src/spence.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
MAXITER = 500


@jax.numpy.vectorize
def complex_spence_series_0(z):
"""
Small z branch, uses a series expansion about :math:`z = 0`
Expand All @@ -27,6 +28,7 @@ def complex_spence_series_0(z):
return np.pi**2 / 6 - sum1 + jnp.log(z) * sum2

Check warning on line 28 in src/spexial/_src/spence.py

View check run for this annotation

Codecov / codecov/patch

src/spexial/_src/spence.py#L28

Added line #L28 was not covered by tests


@jax.numpy.vectorize
def complex_spence_series_1(z):
"""
Middle branch, an expansion around :math:`z = 1`
Expand Down

0 comments on commit 82617f0

Please sign in to comment.