Stan Math Library
4.9.0
Automatic Differentiation
|
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/log1p_exp.hpp>
#include <stan/math/prim/functor/apply_scalar_binary.hpp>
#include <cmath>
#include <vector>
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 T1 , typename T2 , require_all_not_st_var< T1, T2 > * = nullptr, require_all_stan_scalar_t< T1, T2 > * = nullptr> | |
return_type_t< T1, T2 > | stan::math::log_sum_exp (const T2 &a, const T1 &b) |
Calculates the log sum of exponentials without overflow. | |
template<typename T , require_container_st< is_fvar, T > * = nullptr> | |
auto | stan::math::log_sum_exp (const T &x) |
Return the log of the sum of the exponentiated values of the specified matrix of values. | |
template<typename T1 , typename T2 , require_any_container_t< T1, T2 > * = nullptr> | |
auto | stan::math::log_sum_exp (const T1 &a, const T2 &b) |
Enables the vectorized application of the log_sum_exp function, when the first and/or second arguments are containers. | |