Stan Math Library  2.15.0
reverse mode automatic differentiation
Public Member Functions | List of all members
stan::vector_seq_view< std::vector< Eigen::Matrix< S, Eigen::Dynamic, 1 > > > Class Template Reference

This class provides a low-cost wrapper for situations where you either need an Eigen Vector or RowVector or a std::vector of them and you want to be agnostic between those two options. More...

#include <vector_seq_view.hpp>

Public Member Functions

 vector_seq_view (const std::vector< Eigen::Matrix< S, Eigen::Dynamic, 1 > > &v)
 
int size () const
 
Eigen::Matrix< S, Eigen::Dynamic, 1 > operator[] (int i) const
 

Detailed Description

template<typename S>
class stan::vector_seq_view< std::vector< Eigen::Matrix< S, Eigen::Dynamic, 1 > > >

This class provides a low-cost wrapper for situations where you either need an Eigen Vector or RowVector or a std::vector of them and you want to be agnostic between those two options.

This is similar to scalar_seq_view but instead of being a sequence-like view over a scalar or seq of scalars, it's a sequence-like view over a Vector or seq of Vectors. Notably this version only allows std::vectors as the container type, since we would have difficulty figuring out which contained type was the container otherwise.

Template Parameters
Sthe type inside of the underlying Vector

Definition at line 87 of file vector_seq_view.hpp.

Constructor & Destructor Documentation

§ vector_seq_view()

template<typename S >
stan::vector_seq_view< std::vector< Eigen::Matrix< S, Eigen::Dynamic, 1 > > >::vector_seq_view ( const std::vector< Eigen::Matrix< S, Eigen::Dynamic, 1 > > &  v)
inlineexplicit

Definition at line 89 of file vector_seq_view.hpp.

Member Function Documentation

§ operator[]()

template<typename S >
Eigen::Matrix<S, Eigen::Dynamic, 1> stan::vector_seq_view< std::vector< Eigen::Matrix< S, Eigen::Dynamic, 1 > > >::operator[] ( int  i) const
inline

Definition at line 95 of file vector_seq_view.hpp.

§ size()

template<typename S >
int stan::vector_seq_view< std::vector< Eigen::Matrix< S, Eigen::Dynamic, 1 > > >::size ( ) const
inline

Definition at line 92 of file vector_seq_view.hpp.


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

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