Stan Math Library
5.0.0
Automatic Differentiation
|
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/fwd/meta.hpp>
#include <stan/math/fwd/core.hpp>
#include <stan/math/fwd/fun/inv_logit.hpp>
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/fun/to_ref.hpp>
#include <stan/math/prim/fun/log_sum_exp.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 T > | |
fvar< T > | stan::math::log_sum_exp (const fvar< T > &x1, const fvar< T > &x2) |
template<typename T > | |
fvar< T > | stan::math::log_sum_exp (double x1, const fvar< T > &x2) |
template<typename T > | |
fvar< T > | stan::math::log_sum_exp (const fvar< T > &x1, double x2) |
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. | |