logical_and.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_LOGICAL_AND_HPP
#define STAN_MATH_PRIM_SCAL_FUN_LOGICAL_AND_HPP
namespace stan {
namespace math {
template <typename T1, typename T2>
inline int
logical_and(const T1 x1, const T2 x2) {
return (x1 != 0) && (x2 != 0);
}
}
}
#endif
stan::math::logical_and
int logical_and(const T1 x1, const T2 x2)
The logical and function which returns 1 if both arguments are unequal to zero and 0 otherwise...
Definition: logical_and.hpp:30
stan
Definition: log_sum_exp.hpp:8

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