Stan
1.3
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Pages
src
stan
agrad
rev
operator_less_than_or_equal.hpp
Go to the documentation of this file.
1
#ifndef __STAN__AGRAD__REV__OPERATOR_LESS_THAN_OR_EQUAL_HPP__
2
#define __STAN__AGRAD__REV__OPERATOR_LESS_THAN_OR_EQUAL_HPP__
3
4
#include <
stan/agrad/rev/var.hpp
>
5
6
namespace
stan {
7
namespace
agrad {
8
18
inline
bool
operator<=
(
const
var& a,
const
var& b) {
19
return
a.val() <= b.val();
20
}
21
31
inline
bool
operator<=
(
const
var
& a,
const
double
b) {
32
return
a.
val
() <= b;
33
}
34
44
inline
bool
operator<=
(
const
double
a,
const
var
& b) {
45
return
a <= b.
val
();
46
}
47
48
}
49
}
50
#endif
[
Stan Home Page
]
© 2011–2013, Stan Development Team.