Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ softmax() [2/5]

template<typename Vec , require_eigen_vector_vt< is_fvar, Vec > * = nullptr>
auto stan::math::softmax ( Vec &&  x)
inline

Return the softmax of the specified vector of fvar values.

Template Parameters
VecEigen vector with fvar scalar
Parameters
xvector to transform
Returns
softmax of the vector, or an empty result if the input is empty

Definition at line 37 of file softmax.hpp.