Stan
1.0
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
error_handling.hpp
Go to the documentation of this file.
1
#ifndef __STAN__AGRAD__ERROR_HANDLING_HPP__
2
#define __STAN__AGRAD__ERROR_HANDLING_HPP__
3
4
#include <
stan/math/error_handling.hpp
>
5
#include <
stan/agrad/agrad.hpp
>
6
7
namespace
boost {
8
9
namespace
math {
10
22
template
<>
23
inline
24
int
fpclassify
(
const
stan::agrad::var
v) {
25
return
boost::math::fpclassify
(v.
val
());
26
}
27
37
template
<>
38
inline
39
bool
isfinite
(
const
stan::agrad::var
v) {
40
return
boost::math::isfinite
(v.
val
());
41
}
42
52
template
<>
53
inline
54
bool
isinf
(
const
stan::agrad::var
v) {
55
return
boost::math::isinf
(v.
val
());
56
}
57
67
template
<>
68
inline
69
bool
isnan
(
const
stan::agrad::var
v) {
70
return
boost::math::isnan
(v.
val
());
71
}
72
82
template
<>
83
inline
84
bool
isnormal
(
const
stan::agrad::var
v) {
85
return
boost::math::isnormal
(v.
val
());
86
}
87
88
}
89
}
90
91
#endif
92
[
Stan Home Page
]
© 2011–2012, Stan Development Team.