| 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 | Public Member Functions | List of all members
stan::math::container_view< dummy, T2 > Class Template Reference

Dummy type specialization, used in conjunction with struct dummy as described above. More...

`#include <container_view.hpp>`

## Public Types
typedef stan::scalar_type< T2 >::type | scalar_t

## Public Member Functions
template<typename T1 >
| container_view (const T1 &x, scalar_t *y)
| Nothing initialized. More...
scalar_t | operator[] (int n) const
| operator[](int i) More...

## Detailed Description

### template<typename T2>
class stan::math::container_view< dummy, T2 >

Dummy type specialization, used in conjunction with struct dummy as described above.

Template Parameters

  T2 | type of scalar returned by view

Definition at line 60 of file container_view.hpp.

## Member Typedef Documentation

template<typename T2 >

typedef stan::scalar_type<T2>::type stan::math::container_view< dummy, T2 >::scalar_t

Definition at line 62 of file container_view.hpp.

## Constructor & Destructor Documentation

template<typename T2 >
template<typename T1 >

stan::math::container_view< dummy, T2 >::container_view | ( | const T1 & | x,
|  | scalar_t * | y
| ) |  |
| inline

Nothing initialized.

Parameters

  x | input object
  y | underlying array

Definition at line 71 of file container_view.hpp.

## Member Function Documentation

template<typename T2 >

scalar_t stan::math::container_view< dummy, T2 >::operator[] | ( | int | n | ) | const
| inline

operator[](int i)

Parameters

  n | index

Exceptions

  std::out_of_range | regardless of the input.

Definition at line 79 of file container_view.hpp.

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

- stan/math/prim/scal/meta/container_view.hpp

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