logsumexp and softmax evaluate the log-sum-exp function $lse(x) = \log \sum_{i=1}^n e^{x_i}$ and the softmax function $g(x)$ with $g_j(x) = \frac{e^{x_j}}{\sum_{i=1}^n e^{x_i}$, where x is a vector.
Cite As
Nick Higham (2026). logsumexp-softmax (https://github.com/higham/logsumexp-softmax/releases/tag/v1.0), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2020b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0 |
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.
