Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Namespaces | Functions
as_bool.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  stan
 Probability, optimization and sampling library.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T >
int stan::math::as_bool (const T x)
 Return 1 if the argument is unequal to zero and 0 otherwise.
 
template<>
int stan::math::as_bool< int > (const int x)
 Return an integer with an equivalent boolean value to specified input.
 

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