https://github.com/probcomp/logsumexp.jl
Julia implementation of logsumexp
https://github.com/probcomp/logsumexp.jl
Last synced: about 2 months ago
JSON representation
Julia implementation of logsumexp
- Host: GitHub
- URL: https://github.com/probcomp/logsumexp.jl
- Owner: probcomp
- Created: 2021-04-06T02:08:54.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-06T03:44:21.000Z (almost 5 years ago)
- Last Synced: 2025-06-06T11:05:58.452Z (10 months ago)
- Language: Julia
- Size: 90.8 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LogSumExp.jl
[](https://probcomp.github.io/LogSumExp.jl/dev/)
**Update:** This function exists in
[StatsFuns.jl](https://github.com/JuliaStats/StatsFuns.jl) (wish I had found
that on my first search...). Their implementation is fancier and a little more
efficient. Recommend going with theirs unless you really, _really_ want to
keep your dependencies small.
A Julia implementation of `logsumexp`.
Like in
[SciPy](https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.logsumexp.html),
but with `keepdims=True`, since that is the convention for array operations in
Julia. For the `keepdims=False` version, use `reduce_logsumexp`.
For more details, see the full [docs](https://probcomp.github.io/LogSumExp.jl/dev/).