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

Detailed Description

template<typename F, typename T, typename Enable = void>
struct stan::math::apply_scalar_unary< F, T, Enable >

Base template class for vectorization of unary scalar functions defined by a template class F to a scalar, standard library vector, or Eigen dense matrix expression template.

Specializations of this base define applications to scalars (primitive or autodiff in the corresponding autodiff library directories) or to standard library vectors of vectorizable types (primitives, Eigen dense matrix expressions, or further standard vectors).

Each specialization must define the typedef return_t for the vectorized return type and the function apply which defines the vectorization or base application of the function defined statically by the class F. The function definition class F defines a static function fun(), which defines the function's behavior on scalars.

Template Parameters
FType of function to apply.
TType of argument to which function is applied.

Definition at line 41 of file apply_scalar_unary.hpp.


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