All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
operator_equal.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_FWD_CORE_OPERATOR_EQUAL_HPP
#define STAN_MATH_FWD_CORE_OPERATOR_EQUAL_HPP
#include <stan/math/fwd/core/fvar.hpp>
namespace stan {
namespace math {
template <typename T>
inline
bool
operator==(const fvar<T>& x, const fvar<T>& y) {
return x.val_ == y.val_;
}
template <typename T>
inline
bool
operator==(const fvar<T>& x, double y) {
return x.val_ == y;
}
template <typename T>
inline
bool
operator==(double x, const fvar<T>& y) {
return x == y.val_;
}
}
}
#endif
stan::math::fvar::val_
T val_
Definition: fvar.hpp:14
fvar.hpp
stan::math::operator==
bool operator==(const fvar< T > &x, const fvar< T > &y)
Definition: operator_equal.hpp:14
stan::math::fvar
Definition: fvar.hpp:13

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