Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
logical_and.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_FUN_LOGICAL_AND_HPP
2
#define STAN_MATH_PRIM_FUN_LOGICAL_AND_HPP
3
4
#include <
stan/math/prim/meta.hpp
>
5
namespace
stan
{
6
namespace
math {
7
29
template
<
typename
T1,
typename
T2>
30
inline
int
logical_and
(
const
T1 x1,
const
T2 x2) {
31
return
(x1 != 0) && (x2 != 0);
32
}
33
34
}
// namespace math
35
}
// namespace stan
36
37
#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
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
meta.hpp
stan
math
prim
fun
logical_and.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.