1 #ifndef STAN_MATH_PRIM_MAT_META_VECTORVIEWMVT_HPP
2 #define STAN_MATH_PRIM_MAT_META_VECTORVIEWMVT_HPP
12 template <
typename T,
bool is_array
15 bool throw_if_accessed =
false>
25 if (throw_if_accessed)
40 template <
typename T,
bool is_array,
bool throw_if_accessed>
47 explicit VectorViewMvt(
const std::vector<matrix_t>& vm) : x_(&vm[0]) { }
50 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)
VectorViewMvt(const std::vector< matrix_t > &vm)
matrix_t & operator[](int i)
void out_of_range(const char *function, const int max, const int index, const char *msg1="", const char *msg2="")
Throw an out_of_range exception with a consistently formatted message.
const matrix_t & operator[](int i) const
VectorViewMvt(matrix_t &m)
scalar_type_pre< T >::type matrix_t
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.