Stan Math Library  2.8.0
reverse mode automatic differentiation
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
operator_unary_plus.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_CORE_OPERATOR_UNARY_PLUS_HPP
2 #define STAN_MATH_REV_CORE_OPERATOR_UNARY_PLUS_HPP
3 
5 #include <boost/math/special_functions/fpclassify.hpp>
8 
9 namespace stan {
10  namespace math {
11 
43  inline var operator+(const var& a) {
46  a.vi_,
48  return a;
49  }
50 
51  }
52 }
53 #endif
const double NOT_A_NUMBER
(Quiet) not-a-number value.
Definition: constants.hpp:56
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:32
const double val_
The value of this variable.
Definition: vari.hpp:36
bool isnan(const stan::math::var &v)
Checks if the given number is NaN.
Definition: boost_isnan.hpp:22
#define unlikely(x)
Definition: likely.hpp:9
vari * vi_
Pointer to the implementation of this variable.
Definition: var.hpp:44
fvar< T > operator+(const fvar< T > &x1, const fvar< T > &x2)

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