operator_less_than_or_equal.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_REV_CORE_OPERATOR_LESS_THAN_OR_EQUAL_HPP
#define STAN_MATH_REV_CORE_OPERATOR_LESS_THAN_OR_EQUAL_HPP
#include <stan/math/rev/core/var.hpp>
namespace stan {
namespace math {
inline bool operator<=(const var& a, const var& b) {
return a.val() <= b.val();
}
inline bool operator<=(const var& a, double b) {
return a.val() <= b;
}
inline bool operator<=(double a, const var& b) {
return a <= b.val();
}
}
}
#endif
stan
Definition: log_sum_exp.hpp:8
stan::math::var
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:30
stan::math::operator<=
bool operator<=(const fvar< T > &x, const fvar< T > &y)
Definition: operator_less_than_or_equal.hpp:12
var.hpp
stan::math::var::val
double val() const
Return the value of this variable.
Definition: var.hpp:230

[ Stan Home Page ] © 2011–2016, Stan Development Team.