1#ifndef STAN_MATH_ARR_SCAL_FUN_INVERSE_SOFTMAX_HPP
2#define STAN_MATH_ARR_SCAL_FUN_INVERSE_SOFTMAX_HPP
36template <
typename Vector, require_vector_t<Vector>* =
nullptr>
fvar< T > log(const fvar< T > &x)
void check_matching_sizes(const char *function, const char *name1, const T_y1 &y1, const char *name2, const T_y2 &y2)
Check if two structures at the same size.
void inverse_softmax(const Vector &simplex, Vector &y)
Writes the inverse softmax of the simplex argument into the second argument.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...