Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
abs.hpp
Go to the documentation of this file.
1 #ifndef STAN__AGRAD__REV__FUNCTIONS__ABS_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__ABS_HPP
3 
5 
6 namespace stan {
7  namespace agrad {
8 
35  inline var abs(const var& a) {
36  return fabs(a);
37  }
38 
39  }
40 }
41 #endif
fvar< T > fabs(const fvar< T > &x)
Definition: fabs.hpp:18
fvar< T > abs(const fvar< T > &x)
Definition: abs.hpp:19
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:27

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