Stan Math Library
2.15.0
reverse mode automatic differentiation
stan
math
fwd
core
operator_greater_than.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_FWD_CORE_OPERATOR_GREATER_THAN_HPP
2
#define STAN_MATH_FWD_CORE_OPERATOR_GREATER_THAN_HPP
3
4
#include <
stan/math/fwd/core/fvar.hpp
>
5
6
namespace
stan
{
7
namespace
math {
8
9
template
<
typename
T>
10
inline
11
bool
12
operator>
(
const
fvar<T>
& x,
const
fvar<T>
& y) {
13
return
x.
val_
> y.
val_
;
14
}
15
16
template
<
typename
T>
17
inline
18
bool
19
operator>
(
const
fvar<T>
& x,
double
y) {
20
return
x.
val_
> y;
21
}
22
23
template
<
typename
T>
24
inline
25
bool
26
operator>
(
double
x,
const
fvar<T>
& y) {
27
return
x > y.
val_
;
28
}
29
}
30
}
31
#endif
stan
Definition:
log_sum_exp.hpp:8
stan::math::fvar::val_
T val_
Definition:
fvar.hpp:15
fvar.hpp
stan::math::operator>
bool operator>(const fvar< T > &x, const fvar< T > &y)
Definition:
operator_greater_than.hpp:12
stan::math::fvar
Definition:
fvar.hpp:14
[
Stan Home Page
]
© 2011–2016, Stan Development Team.