Automatic Differentiation
 
Loading...
Searching...
No Matches
operator_greater_than_or_equal.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_CORE_OPERATOR_GREATER_THAN_OR_EQUAL_HPP
2#define STAN_MATH_REV_CORE_OPERATOR_GREATER_THAN_OR_EQUAL_HPP
3
6
7namespace stan {
8namespace math {
9
28inline bool operator>=(const var& a, const var& b) {
29 return a.val() >= b.val();
30}
31
42template <typename Arith, require_arithmetic_t<Arith>* = nullptr>
43inline bool operator>=(const var& a, Arith b) {
44 return a.val() >= b;
45}
46
57template <typename Arith, typename Var, require_arithmetic_t<Arith>* = nullptr>
58inline bool operator>=(Arith a, const var& b) {
59 return a >= b.val();
60}
61
62} // namespace math
63} // namespace stan
64#endif
bool operator>=(const fvar< T > &x, const fvar< T > &y)
Return true if the value of the first argument is greater than or equal to that of the second as defi...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...