Automatic Differentiation
 
Loading...
Searching...
No Matches
logical_or.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_LOGICAL_OR_HPP
2#define STAN_MATH_PRIM_FUN_LOGICAL_OR_HPP
3
5namespace stan {
6namespace math {
7
28template <typename T1, typename T2>
29inline int logical_or(T1 x1, T2 x2) {
30 return (x1 != 0) || (x2 != 0);
31}
32
33} // namespace math
34} // namespace stan
35
36#endif
int logical_or(T1 x1, T2 x2)
The logical or function which returns 1 if either argument is unequal to zero and 0 otherwise.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...