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

◆ log_softmax() [1/4]

template<typename T , require_vector_st< is_fvar, T > * = nullptr>
auto stan::math::log_softmax ( const T &  x)
inline

Return the log softmax of the specified vector or container of vectors.

Return the log softmax of the specified std::vector or std::vector of containers.

Return the log softmax of the specified vector.

Template Parameters
TType of input vector or matrix.
Parameters
[in]xUnconstrained input vector.
Returns
Softmax of the input.
Exceptions
std::domain_errorIf the input vector is size 0.
Template Parameters
Ttype of input
Parameters
xinput
Returns
softmax of the input
Exceptions
std::domain_errorif the input size is 0
Template Parameters
Ttype of input
Parameters
xinput
Returns
softmax of the input
Exceptions
std::domain_errorif the input size is 0
Template Parameters
Ttype of input
Parameters
xinput
Returns
softmax of the input
Exceptions
std::domain_errorif the input size is 0

Definition at line 22 of file log_softmax.hpp.