Automatic Differentiation
 
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
8
9namespace stan {
10namespace math {
11
21template <typename T, require_fvar_t<T>* = nullptr>
22inline 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
bool is_nan(T &&x)
Returns 1 if the input's value is NaN and 0 otherwise.
Definition is_nan.hpp:22
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...