All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
as_bool.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_AS_BOOL_HPP
#define STAN_MATH_PRIM_SCAL_FUN_AS_BOOL_HPP
namespace stan {
namespace math {
template <typename T>
inline bool as_bool(const T x) {
return x != 0;
}
}
}
#endif
stan::math::as_bool
bool as_bool(const T x)
Return 1 if the argument is unequal to zero and 0 otherwise.
Definition: as_bool.hpp:14

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