API reference#
The full public surface of jaxpolylog lives in a single module,
jaxpolylog.polylogs, and is re-exported through the top-level
jaxpolylog package.
Top-level functions#
|
Description: Vectorized version of the polylogarithm function using JAX's vmap. |
Numerical and algorithmic helpers#
Most users will only call jax_polylog() and
jax_polylog_vmap(). The helpers below document the
implementation choices behind the scenes – the exact Bernoulli
construction of the "zero" expansion coefficients, the
custom-JVP rule, and the small-\(|z|\)-safe form of
\(\mathrm{Li}_1(z)/z\). They are surfaced here so that downstream
authors can reason about precision and autodiff regimes without
having to read the source.
Precompute |
|
Riemann |
|
|
|
Find the optimal transition parameter |
|
|
Description: Compute \(\mathrm{Li}_s(z)/z\) via a numerically stable evaluation that avoids dividing by |
Optimal patch crossover#
- _PVAL_OPTIMAL: float#
Convert a string or number to a floating-point number, if possible.
The unique positive solution of \(e^{-2\pi t} = t\), used as the
default crossover between the "inf" and "zero" series in
approx="patch". Approximately \(0.2322\). Precomputed once
at import time by bisection.