![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
#include <stan/math/prim/meta.hpp>#include <stan/math/prim/err.hpp>#include <stan/math/prim/fun/cumulative_sum.hpp>#include <stan/math/prim/fun/softmax.hpp>#include <stan/math/prim/fun/Eigen.hpp>#include <boost/random/uniform_01.hpp>#include <boost/random/variate_generator.hpp>Go to the source code of this file.
Namespaces | |
| namespace | stan |
| The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation. | |
| namespace | stan::math |
| Matrices and templated mathematical functions. | |
Functions | |
| template<class RNG > | |
| int | stan::math::categorical_logit_rng (const Eigen::VectorXd &beta, RNG &rng) |
| Return a draw from a Categorical distribution given a a vector of unnormalized log probabilities and a psuedo-random number generator. | |