Automatic Differentiation
 
Loading...
Searching...
No Matches
is_any_nan.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_IS_ANY_NAN_HPP
2#define STAN_MATH_PRIM_FUN_IS_ANY_NAN_HPP
3
5#include <utility>
6
7namespace stan {
8namespace math {
9
20template <typename T>
21inline bool is_any_nan(const T& x) {
22 return is_nan(x);
23}
24
34template <typename T, typename... Ts>
35inline bool is_any_nan(const T& x, const Ts&... xs) {
36 return is_any_nan(x) || is_any_nan(xs...);
37}
38
39} // namespace math
40} // namespace stan
41
42#endif
bool is_nan(T &&x)
Returns 1 if the input's value is NaN and 0 otherwise.
Definition is_nan.hpp:22
bool is_any_nan(const T &x)
Returns true if the input is NaN and false otherwise.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...