All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
is_nan.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_FWD_SCAL_FUN_IS_NAN_HPP
#define STAN_MATH_FWD_SCAL_FUN_IS_NAN_HPP
#include <stan/math/fwd/core.hpp>
#include <stan/math/prim/scal/fun/is_nan.hpp>
namespace stan {
namespace math {
template <typename T>
inline
int
is_nan(const fvar<T>& x) {
using stan::math::is_nan;
return is_nan(x.val());
}
}
}
#endif
core.hpp
is_nan.hpp
stan::math::fvar::val
T val() const
Definition: fvar.hpp:17
stan::math::is_nan
int is_nan(const fvar< T > &x)
Returns 1 if the input's value is NaN and 0 otherwise.
Definition: is_nan.hpp:22
stan::math::fvar
Definition: fvar.hpp:13

[ Stan Home Page ] © 2011–2015, Stan Development Team.