Automatic Differentiation
 
Loading...
Searching...
No Matches
log_mix.hpp File Reference

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.