![]() |
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/as_array_or_scalar.hpp>#include <stan/math/prim/fun/as_column_vector_or_scalar.hpp>#include <stan/math/prim/fun/exp.hpp>#include <stan/math/prim/fun/log.hpp>#include <stan/math/prim/fun/log1m.hpp>#include <stan/math/prim/fun/log_sum_exp.hpp>#include <stan/math/prim/fun/size.hpp>#include <stan/math/prim/fun/to_ref.hpp>#include <stan/math/prim/fun/value_of.hpp>#include <stan/math/prim/functor/partials_propagator.hpp>#include <vector>#include <cmath>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<typename T_theta , typename T_lambda1 , typename T_lambda2 , require_all_arithmetic_t< T_theta, T_lambda1, T_lambda2 > * = nullptr> | |
| double | stan::math::log_mix (T_theta theta, T_lambda1 lambda1, T_lambda2 lambda2) |
| Return the log mixture density with specified mixing proportion and log densities. | |
| template<typename T_theta , typename T_lam , require_any_vector_t< T_theta, T_lam > * = nullptr> | |
| return_type_t< T_theta, T_lam > | stan::math::log_mix (const T_theta &theta, const T_lam &lambda) |
| Return the log mixture density with specified mixing proportions and log densities. | |
| template<typename T_theta , typename T_lam , require_vector_t< T_lam > * = nullptr> | |
| return_type_t< T_theta, std::vector< T_lam > > | stan::math::log_mix (const T_theta &theta, const std::vector< T_lam > &lambda) |
| Return the log mixture density given specified mixing proportions and array of log density vectors. | |