Stan Math Library
5.0.0
Automatic Differentiation
Loading...
Searching...
No Matches
isnan.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_SCAL_FUN_ISNAN_HPP
2
#define STAN_MATH_PRIM_SCAL_FUN_ISNAN_HPP
3
4
#include <
stan/math/prim/meta.hpp
>
5
#include <
stan/math/prim/fun/is_nan.hpp
>
6
7
namespace
stan
{
8
namespace
math {
9
20
template
<
typename
T,
typename
= require_autodiff_t<T>>
21
inline
bool
isnan(
const
T& x) {
22
return
is_nan
(x);
23
}
24
25
}
// namespace math
26
}
// namespace stan
27
28
#endif
stan::math::is_nan
bool is_nan(T &&x)
Returns 1 if the input's value is NaN and 0 otherwise.
Definition
is_nan.hpp:22
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
is_nan.hpp
meta.hpp
stan
math
prim
fun
isnan.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.