Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::apply_scalar_unary< F, fvar< T > > Struct Template Reference

Detailed Description

template<typename F, typename T>
struct stan::math::apply_scalar_unary< F, fvar< T > >

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.

Template Parameters
FType of function to apply.
TValue and tangent type for for forward-mode autodiff variable.

Definition at line 21 of file apply_scalar_unary.hpp.

#include <apply_scalar_unary.hpp>

Public Types

using return_t = fvar< T >
 Function return type, which is same as the argument type for the function, fvar<T>.
 

Static Public Member Functions

static return_t apply (const fvar< T > &x)
 Apply the function specified by F to the specified argument.
 

The documentation for this struct was generated from the following file: