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