Automatic Differentiation
 
Loading...
Searching...
No Matches
operator_multiply_equal.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_CORE_OPERATOR_MULTIPLY_EQUAL_HPP
2#define STAN_MATH_REV_CORE_OPERATOR_MULTIPLY_EQUAL_HPP
3
7
8namespace stan {
9namespace math {
10
11template <typename T>
13 const var_value<T>& b) {
14 vi_ = new internal::multiply_vv_vari(vi_, b.vi_);
15 return *this;
16}
17
18template <typename T>
20 T b) {
21 if (b == 1.0) {
22 return *this;
23 }
24 vi_ = new internal::multiply_vd_vari(vi_, b);
25 return *this;
26}
27
28} // namespace math
29} // namespace stan
30#endif
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...