logsumexp-softmax

Version 1.0 (3.09 KB) by Nick Higham
Log-sum-exp and softmax functions
130 Downloads
Updated 28 Dec 2020

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 Linux
Tags Add Tags
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.