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

Detailed Description

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

Template specialization for vectorized functions applying to integer arguments.

Although the argument is integer, the return type is specified as double. This allows promotion of integers to doubles in vectorized functions, or in containers.

Template Parameters
FType of function defining static apply function.

Definition at line 133 of file apply_scalar_unary.hpp.

#include <apply_scalar_unary.hpp>

Public Types

using return_t = std::decay_t< decltype(F::fun(std::declval< double >()))>
 The return type, double.
 

Static Public Member Functions

static auto apply (T x)
 Apply the function specified by F to the specified argument.
 

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