All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
operator_not_equal.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_REV_CORE_OPERATOR_NOT_EQUAL_HPP
#define STAN_MATH_REV_CORE_OPERATOR_NOT_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, const double b) {
return a.val() != b;
}
inline bool operator!=(const double a, const var& b) {
return a != b.val();
}
}
}
#endif
stan::math::var
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:32
stan::math::operator!=
bool operator!=(const fvar< T > &x, const fvar< T > &y)
Definition: operator_not_equal.hpp:14
var.hpp
stan::math::var::val
double val() const
Return the value of this variable.
Definition: var.hpp:234

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