1 #ifndef STAN_MATH_PRIM_MAT_META_VECTORVIEWMVT_HPP 2 #define STAN_MATH_PRIM_MAT_META_VECTORVIEWMVT_HPP 25 template <
typename T,
bool is_array
28 bool throw_if_accessed =
false>
55 if (throw_if_accessed)
71 template <
typename T,
bool is_array,
bool throw_if_accessed>
78 explicit VectorViewMvt(
const std::vector<matrix_t>& vm) : x_(&vm[0]) { }
92 if (throw_if_accessed)
scalar_type_helper_pre< is_vector< typename stan::math::value_type< T >::type >::value, typename stan::math::value_type< T >::type, T >::type type
Template metaprogram indicates whether a type is vector_like.
VectorViewMvt(std::vector< matrix_t > &vm)
Constructor.
VectorViewMvt(const std::vector< matrix_t > &vm)
matrix_t & operator[](int i)
Allows the structure to be accessed like an array.
void out_of_range(const char *function, int max, int index, const char *msg1="", const char *msg2="")
Throw an out_of_range exception with a consistently formatted message.
VectorViewMvt(matrix_t &m)
Constructor.
VectorViewMvt is a template expression that wraps either an Eigen::Matrix or a std::vector<Eigen::Mat...
scalar_type_pre< T >::type matrix_t
const matrix_t & operator[](int i) const
Allows the structure to be accessed like an array.
VectorViewMvt(const matrix_t &m)
scalar_type_pre< T >::type matrix_t
Primary template class for metaprogram to compute the type of values stored in a container.