Stan Math Library  2.14.0
reverse mode automatic differentiation
Public Member Functions | List of all members
stan::math::container_view< Eigen::Matrix< T1, R, C >, T2 > Class Template Reference

Template specialization for scalar view of array y with scalar type T2. More...

#include <container_view.hpp>

Public Member Functions

 container_view (const Eigen::Matrix< T1, R, C > &x, T2 *y)
 Constructor. More...
 
T2 & operator[] (int i)
 operator[](int i) returns reference to scalar of type T2 at appropriate index i in array y More...
 

Detailed Description

template<typename T1, typename T2, int R, int C>
class stan::math::container_view< Eigen::Matrix< T1, R, C >, T2 >

Template specialization for scalar view of array y with scalar type T2.

Template Parameters
T1scalar type of input matrix
T2scalar type returned by view.
Rrows of input matrix and view
Ccolumns of input matrix and view

Definition at line 57 of file container_view.hpp.

Constructor & Destructor Documentation

§ container_view()

template<typename T1 , typename T2 , int R, int C>
stan::math::container_view< Eigen::Matrix< T1, R, C >, T2 >::container_view ( const Eigen::Matrix< T1, R, C > &  x,
T2 *  y 
)
inline

Constructor.

Parameters
xinput matrix
yunderlying array

Definition at line 65 of file container_view.hpp.

Member Function Documentation

§ operator[]()

template<typename T1 , typename T2 , int R, int C>
T2& stan::math::container_view< Eigen::Matrix< T1, R, C >, T2 >::operator[] ( int  i)
inline

operator[](int i) returns reference to scalar of type T2 at appropriate index i in array y

Definition at line 72 of file container_view.hpp.


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

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