Merge pull request #20822 from jakevdp:scipy-special-doc

PiperOrigin-RevId: 629129623
This commit is contained in:
jax authors 2024-04-29 11:27:23 -07:00
commit 1b5c49e752
3 changed files with 732 additions and 96 deletions

View File

@ -301,8 +301,8 @@ always_document_param_types = True
# Tell sphinx autodoc how to render type aliases.
autodoc_type_aliases = {
'ArrayLike': 'ArrayLike',
'DTypeLike': 'DTypeLike',
'ArrayLike': 'jax.typing.ArrayLike',
'DTypeLike': 'jax.typing.DTypeLike',
}

View File

@ -44,7 +44,7 @@ def logsumexp(a: ArrayLike, axis: Axis = None, b: ArrayLike | None = None,
keepdims: bool = False, return_sign: bool = False, where: ArrayLike | None = None) -> Array | tuple[Array, Array]:
r"""Log-sum-exp reduction.
Computes
JAX implementation of :func:`scipy.special.logsumexp`.
.. math::
\mathrm{logsumexp}(a) = \mathrm{log} \sum_j b \cdot \mathrm{exp}(a_{ij})

File diff suppressed because it is too large Load Diff