| 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, double > Struct Template Reference

Template specialization for vectorized functions applying to double arguments. More...

`#include <apply_scalar_unary.hpp>`

## Public Types
typedef double | return_t
| The return type, double. More...

## Static Public Member Functions
static return_t | apply (double x)
| Apply the function specified by F to the specified argument. More...

## Detailed Description

### template<typename F>
struct stan::math::apply_scalar_unary< F, double >

Template specialization for vectorized functions applying to double arguments.

Template Parameters

  F | Type of function defining static apply function.

Definition at line 73 of file apply_scalar_unary.hpp.

## Member Typedef Documentation

template<typename F >

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

The return type, double.

Definition at line 77 of file apply_scalar_unary.hpp.

## Member Function Documentation

template<typename F >

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

Apply the function specified by F to the specified argument.

This is defined through a direct application of `F::fun()`, which must be defined for double arguments.

Parameters

  x | Argument scalar.

Returns
  Result of applying F to the scalar.

Definition at line 88 of file apply_scalar_unary.hpp.

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

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

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