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
is_uninitialized.hpp
Go to the documentation of this file.
1
#ifndef __STAN__AGRAD__REV__IS_UNINITIALIZED_HPP__
2
#define __STAN__AGRAD__REV__IS_UNINITIALIZED_HPP__
3
4
#include <
stan/agrad/rev/var.hpp
>
5
#include <
stan/agrad/rev/vari.hpp
>
6
#include <
stan/agrad/rev/operator_unary_negative.hpp
>
7
8
namespace
stan {
9
namespace
agrad {
10
11
template
<
typename
T>
12
inline
bool
is_uninitialized
(T x) {
13
return
false
;
14
}
15
inline
bool
is_uninitialized
(
var
x) {
16
return
x.
is_uninitialized
();
17
}
18
19
}
20
}
21
#endif
[
Stan Home Page
]
© 2011–2013, Stan Development Team.