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

◆ log_softmax() [1/5]

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

Return the log softmax of each vector in a container of fvar values.

Return the log softmax of each vector in an array.

Return the log softmax of the specified vector or row vector.

Template Parameters
Tstd::vector whose scalar type is fvar
Parameters
xcontainer of vectors to transform
Returns
container of log softmax results
Template Parameters
Ta var_value or Eigen vector/row_vector with var scalar
Parameters
xinput
Returns
log softmax of the input
Exceptions
std::domain_errorif the input size is 0
Template Parameters
Tstd::vector whose scalar type is var
Parameters
xarray of vectors to transform
Returns
array of log softmax results
Exceptions
std::domain_errorif any element size is 0

Definition at line 24 of file log_softmax.hpp.