1 #ifndef STAN_MATH_PRIM_SCAL_META_CONTAINER_VIEW_HPP
2 #define STAN_MATH_PRIM_SCAL_META_CONTAINER_VIEW_HPP
18 template <
typename T1,
typename T2>
59 template <
typename T2>
63 template <
typename T1>
container_view(const T1 &x, T2 *y)
Constructor.
scalar_type_helper< is_vector< T >::value, T >::type type
Empty struct for use in boost::condtional::value, T1, dummy>::type as false co...
stan::scalar_type< T2 >::type scalar_t
T2 & operator[](int i)
operator[](int i) returns reference to view, indexed by i Specialization handle appropriate broadcast...
scalar_t operator[](int n) const
operator[](int i)
container_view(const T1 &x, scalar_t *y)
Nothing initialized.
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.
Primary template class for container view of array y with same structure as T1 and size as x...