Stan Math Library
5.0.0
Automatic Differentiation
▼
Stan Math Library
Overview
▼
Contributor Guides
Developer Guide
Adding New Functions
Adding New Distributions
Common Pitfalls
Using requires for general overloads
Reverse Mode Types
Testing Automatic Differentiation Functions
Testing New Distributions
Add New Functions With Known Gradients
Adding New OpenCL Functions
Windows Development Tips
►
Internal Docs
►
Parallelism
(External Link) Stan Language Docs
(External Link) Stan Discourse
►
Stan Math Library Docs
►
Class List
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
is_nan.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_FWD_FUN_IS_NAN_HPP
2
#define STAN_MATH_FWD_FUN_IS_NAN_HPP
3
4
#include <
stan/math/fwd/meta.hpp
>
5
#include <
stan/math/fwd/core.hpp
>
6
#include <
stan/math/prim/meta.hpp
>
7
#include <
stan/math/prim/fun/is_nan.hpp
>
8
9
namespace
stan
{
10
namespace
math {
11
21
template
<
typename
T, require_fvar_t<T>* =
nullptr
>
22
inline
bool
is_nan
(T&& x) {
23
return
is_nan
(std::forward<
decltype
(x.val())>(x.val()));
24
}
25
26
}
// namespace math
27
}
// namespace stan
28
#endif
core.hpp
meta.hpp
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
fwd
fun
is_nan.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.