![]() |
Stan Math Library
2.15.0
reverse mode automatic differentiation
|
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, 1, Eigen::Dynamic > > &v) | |
int | size () const |
Eigen::Matrix< S, 1, Eigen::Dynamic > | operator[] (int i) const |
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.
S | the type inside of the underlying Vector |
Definition at line 114 of file vector_seq_view.hpp.
|
inlineexplicit |
Definition at line 116 of file vector_seq_view.hpp.
|
inline |
Definition at line 122 of file vector_seq_view.hpp.
|
inline |
Definition at line 119 of file vector_seq_view.hpp.