Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return the softmax of the specified Eigen vector.
Softmax is guaranteed to return a simplex.
alpha | Unconstrained input vector. |
std::domain_error | If the input vector is size 0. |
Definition at line 27 of file softmax.hpp.