Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
operator_unary_plus.hpp
Go to the documentation of this file.
1 #ifndef STAN__AGRAD__REV__OPERATORS__OPERATOR_UNARY_PLUS_HPP
2 #define STAN__AGRAD__REV__OPERATORS__OPERATOR_UNARY_PLUS_HPP
3 
4 #include <stan/agrad/rev/var.hpp>
5 #include <boost/math/special_functions/fpclassify.hpp>
8 
9 namespace stan {
10  namespace agrad {
11 
43  inline var operator+(const var& a) {
46  a.vi_,
48  return a;
49  }
50 
51  }
52 }
53 #endif
bool isnan(const stan::agrad::var &v)
Checks if the given number is NaN.
const double NOT_A_NUMBER
(Quiet) not-a-number value.
Definition: constants.hpp:53
const double val_
The value of this variable.
Definition: vari.hpp:37
fvar< T > operator+(const fvar< T > &x1, const fvar< T > &x2)
vari * vi_
Pointer to the implementation of this variable.
Definition: var.hpp:40
#define unlikely(x)
Definition: likely.hpp:9
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:27

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