![]() |
Stan Math Library
2.11.0
reverse mode automatic differentiation
|
Template specialization to fvar for vectorizing a unary scalar function. More...
#include <apply_scalar_unary.hpp>
Public Types | |
| typedef stan::math::fvar< T > | return_t |
Function return type, which is same as the argument type for the function, fvar<T>. More... | |
Static Public Member Functions | |
| static return_t | apply (const stan::math::fvar< T > &x) |
| Apply the function specified by F to the specified argument. More... | |
Template specialization to fvar for vectorizing a unary scalar function.
This is a base scalar specialization. It applies the function specified by the template parameter to the argument.
| F | Type of function to apply. |
| T | Value and tangent type for for forward-mode autodiff variable. |
Definition at line 22 of file apply_scalar_unary.hpp.
| typedef stan::math::fvar<T> stan::math::apply_scalar_unary< F, stan::math::fvar< T > >::return_t |
Function return type, which is same as the argument type for the function, fvar<T>.
Definition at line 27 of file apply_scalar_unary.hpp.
|
inlinestatic |
Apply the function specified by F to the specified argument.
| x | Argument variable. |
Definition at line 35 of file apply_scalar_unary.hpp.