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