operator_greater_than.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_REV_CORE_OPERATOR_GREATER_THAN_HPP
#define STAN_MATH_REV_CORE_OPERATOR_GREATER_THAN_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
var.hpp
stan::math::operator>
bool operator>(const fvar< T > &x, const fvar< T > &y)
Definition: operator_greater_than.hpp:12
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.