Stan Math Library  2.10.0
reverse mode automatic differentiation
Public Types | Static Public Member Functions | List of all members
stan::math::apply_scalar_unary< F, stan::math::var > Struct Template Reference

Template specialization to var for vectorizing a unary scalar function. More...

#include <apply_scalar_unary.hpp>

Public Types

typedef stan::math::var return_t
 Function return type, which is var. More...
 

Static Public Member Functions

static return_t apply (const stan::math::var &x)
 Apply the function specified by F to the specified argument. More...
 

Detailed Description

template<typename F>
struct stan::math::apply_scalar_unary< F, stan::math::var >

Template specialization to var 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.

Definition at line 20 of file apply_scalar_unary.hpp.

Member Typedef Documentation

Function return type, which is var.

Definition at line 24 of file apply_scalar_unary.hpp.

Member Function Documentation

template<typename F >
static return_t stan::math::apply_scalar_unary< F, stan::math::var >::apply ( const stan::math::var x)
inlinestatic

Apply the function specified by F to the specified argument.

Parameters
xArgument variable.
Returns
Function applied to the variable.

Definition at line 32 of file apply_scalar_unary.hpp.


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

     [ Stan Home Page ] © 2011–2016, Stan Development Team.