| Stan Math Library 2.12.0 reverse mode automatic differentiation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Static Public Member Functions | List of all members
stan::math::apply_scalar_unary< F, var > Struct Template Reference

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

`#include <apply_scalar_unary.hpp>`

## Public Types
typedef var | return_t
| Function return type, which is `var`. More...

## Static Public Member Functions
static return_t | apply (const 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, 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

  F | Type of function to apply.

Definition at line 19 of file apply_scalar_unary.hpp.

## Member Typedef Documentation

template<typename F >

typedef var stan::math::apply_scalar_unary< F, var >::return_t

Function return type, which is `var`.

Definition at line 23 of file apply_scalar_unary.hpp.

## Member Function Documentation

template<typename F >

static return_t stan::math::apply_scalar_unary< F, var >::apply | ( | const var & | x | ) |
| inline static

Apply the function specified by F to the specified argument.

Parameters

  x | Argument variable.

Returns
  Function applied to the variable.

Definition at line 31 of file apply_scalar_unary.hpp.

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

- stan/math/rev/mat/vectorize/apply_scalar_unary.hpp

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