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