is_inf.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_FWD_SCAL_FUN_IS_INF_HPP
#define STAN_MATH_FWD_SCAL_FUN_IS_INF_HPP
#include <stan/math/fwd/core.hpp>
#include <stan/math/prim/scal/fun/is_inf.hpp>
namespace stan {
namespace math {
template <typename T>
inline
int
is_inf(const fvar<T>& x) {
return is_inf(x.val());
}
}
}
#endif
core.hpp
stan
Definition: log_sum_exp.hpp:8
is_inf.hpp
stan::math::is_inf
int is_inf(const fvar< T > &x)
Returns 1 if the input&#39;s value is infinite and 0 otherwise.
Definition: is_inf.hpp:21
stan::math::fvar::val
T val() const
Definition: fvar.hpp:18
stan::math::fvar
Definition: fvar.hpp:14

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