Stan Math Library  2.20.0
reverse mode automatic differentiation
abs.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_SCAL_FUN_ABS_HPP
2 #define STAN_MATH_REV_SCAL_FUN_ABS_HPP
3 
4 #include <stan/math/rev/meta.hpp>
6 
7 namespace stan {
8 namespace math {
9 
36 inline var abs(const var& a) { return fabs(a); }
37 
38 } // namespace math
39 } // namespace stan
40 #endif
fvar< T > abs(const fvar< T > &x)
Definition: abs.hpp:14
fvar< T > fabs(const fvar< T > &x)
Definition: fabs.hpp:15
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:33

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