Stan Math Library  2.11.0
reverse mode automatic differentiation
apply_scalar_unary.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_MAT_VECTORIZE_APPLY_SCALAR_UNARY_HPP
2 #define STAN_MATH_REV_MAT_VECTORIZE_APPLY_SCALAR_UNARY_HPP
3 
6 
7 namespace stan {
8 
9  namespace math {
10 
19  template <typename F>
25 
32  static inline return_t apply(const stan::math::var& x) {
33  return F::fun(x);
34  }
35  };
36 
37  }
38 }
39 #endif
stan::math::var return_t
Function return type, which is var.
static return_t apply(const stan::math::var &x)
Apply the function specified by F to the specified argument.
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:31
Base template class for vectorization of unary scalar functions defined by a template class F to a sc...

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