#ifndef STAN_MATH_FWD_CORE_OPERATOR_LESS_THAN_HPP
#define STAN_MATH_FWD_CORE_OPERATOR_LESS_THAN_HPP

#include <stan/math/fwd/core/fvar.hpp>

namespace stan {
  namespace math {

    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_;
    }

    template <typename T>
    inline bool operator<(const fvar<T>& x,
                          const fvar<T>& y) {
      return x.val_ < y.val_;
    }
  }
}
#endif
