Automatic Differentiation
 
Loading...
Searching...
No Matches
operator_unary_not.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_CORE_OPERATOR_UNARY_NOT_HPP
2#define STAN_MATH_REV_CORE_OPERATOR_UNARY_NOT_HPP
3
6
7namespace stan {
8namespace math {
9
17inline bool operator!(const var& x) { return !x.val(); }
18
19} // namespace math
20} // namespace stan
21#endif
bool operator!(const fvar< T > &x)
Return the negation of the value of the argument as defined by !.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...