Stan Math Library
5.0.0
Automatic Differentiation
|
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/log.hpp>
#include <stan/math/prim/functor/apply_scalar_binary.hpp>
#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 T1 , typename T2 , require_all_arithmetic_t< T1, T2 > * = nullptr> | |
return_type_t< T1, T2 > | stan::math::lmultiply (const T1 a, const T2 b) |
Return the first argument times the log of the second argument. | |
template<typename T1 , typename T2 , require_any_container_t< T1, T2 > * = nullptr, require_all_not_var_matrix_t< T1, T2 > * = nullptr> | |
auto | stan::math::lmultiply (const T1 &a, const T2 &b) |
Return the result of applying lmultiply to the arguments elementwise, with broadcasting if one of the arguments is a scalar. | |