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

Template specialization for Eigen::Map view of array with scalar type T2 with size inferred from input Eigen::Matrix. More...

#include <container_view.hpp>

Public Member Functions

 container_view (const Eigen::Matrix< T1, R, C > &x, T2 *y)
 Initialize Map dimensions with input matrix dimensions. More...
 
Eigen::Map< Eigen::Matrix< T2, R, C > > & operator[] (int i)
 operator[](int i) returns Eigen::Map y More...
 

Detailed Description

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

Template specialization for Eigen::Map view of array with scalar type T2 with size inferred from input Eigen::Matrix.

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

Definition at line 23 of file container_view.hpp.

Constructor & Destructor Documentation

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

Initialize Map dimensions with input matrix dimensions.

Parameters
xinput matrix
yunderlying array

Definition at line 32 of file container_view.hpp.

Member Function Documentation

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

operator[](int i) returns Eigen::Map y

Parameters
iindex

Definition at line 40 of file container_view.hpp.


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

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