| Stan Math Library 2.12.0 reverse mode automatic differentiation

- Main Page
- Modules
- Namespaces
- Classes
- Files

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

Static Public Member Functions | List of all members
stan::math::promote_scalar_struct< T, std::vector< S > > Struct Template Reference

Struct to hold static function for promoting underlying scalar types. More...

`#include <promote_scalar.hpp>`

## Static Public Member Functions
static std::vector< typename promote_scalar_type< T, S >::type > | apply (const std::vector< S > &x)
| Return the standard vector consisting of the recursive promotion of the elements of the input standard vector to the scalar type specified by the return template parameter. More...

## Detailed Description

### template<typename T, typename S>
struct stan::math::promote_scalar_struct< T, std::vector< S > >

Struct to hold static function for promoting underlying scalar types.

This specialization is for standard vector inputs.

Template Parameters

  T | return scalar type
  S | input type for standard vector elements in static nested function, which must have an underlying scalar type assignable to T.

Definition at line 22 of file promote_scalar.hpp.

## Member Function Documentation

template<typename T , typename S >

static std::vector<typename promote_scalar_type<T, S>::type> stan::math::promote_scalar_struct< T, std::vector< S > >::apply | ( | const std::vector< S > & | x | ) |
| inline static

Return the standard vector consisting of the recursive promotion of the elements of the input standard vector to the scalar type specified by the return template parameter.

Parameters

  x | input standard vector.

Returns
  standard vector with values promoted from input vector.

Definition at line 32 of file promote_scalar.hpp.

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

- stan/math/prim/arr/fun/promote_scalar.hpp

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