Automatic Differentiation
 
Loading...
Searching...
No Matches
operator_greater_than.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_CORE_OPERATOR_GREATER_THAN_HPP
2#define STAN_MATH_REV_CORE_OPERATOR_GREATER_THAN_HPP
3
6
7namespace stan {
8namespace math {
9
26inline bool operator>(const var& a, const var& b) { return a.val() > b.val(); }
27
37template <typename Arith, require_arithmetic_t<Arith>* = nullptr>
38inline bool operator>(const var& a, Arith b) {
39 return a.val() > b;
40}
41
51template <typename Arith, require_arithmetic_t<Arith>* = nullptr>
52inline bool operator>(Arith a, const var& b) {
53 return a > b.val();
54}
55
56} // namespace math
57} // namespace stan
58#endif
bool operator>(const fvar< T > &x, const fvar< T > &y)
Return true if the first argument has a greater value than the second as defined by >.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...