Automatic Differentiation
 
Loading...
Searching...
No Matches
apply_scalar_unary.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_FWD_FUNCTOR_APPLY_SCALAR_UNARY_HPP
2#define STAN_MATH_FWD_FUNCTOR_APPLY_SCALAR_UNARY_HPP
3
6
7namespace stan {
8namespace math {
9
20template <typename F, typename T>
21struct apply_scalar_unary<F, fvar<T> > {
27
34 static inline return_t apply(const fvar<T>& x) { return F::fun(x); }
35};
36
37} // namespace math
38} // namespace stan
39#endif
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9
static return_t apply(const fvar< T > &x)
Apply the function specified by F to the specified argument.
Base template class for vectorization of unary scalar functions defined by a template class F to a sc...
This template class represents scalars used in forward-mode automatic differentiation,...
Definition fvar.hpp:40