Stan Math Library
4.9.0
Automatic Differentiation
|
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.
F | Type of function to apply. |
T | Type of argument to which function is applied. |
Definition at line 41 of file apply_scalar_unary.hpp.