1 #ifndef STAN_MATH_PRIM_MAT_META_SEQ_VIEW_HPP
2 #define STAN_MATH_PRIM_MAT_META_SEQ_VIEW_HPP
41 template <
typename T,
typename S>
58 template <
typename T,
typename S>
59 class seq_view<T, Eigen::Matrix<S, Eigen::Dynamic, 1> > {
64 pass_type<Eigen::Matrix<S, Eigen::Dynamic, 1> >::type x)
77 template <
typename T,
typename S>
78 class seq_view<T, Eigen::Matrix<S, 1, Eigen::Dynamic> > {
83 <Eigen::Matrix<S, 1, Eigen::Dynamic> >::type x)
98 template <
typename T,
typename S>
99 class seq_view<T, Eigen::Matrix<S, Eigen::Dynamic, Eigen::Dynamic> > {
102 <S, Eigen::Dynamic, Eigen::Dynamic> >::type x_;
106 <S, Eigen::Dynamic, Eigen::Dynamic> >::type x)
111 return x_(n / x_.cols(), n % x_.cols());
119 template <
typename T,
typename S>
123 const size_t elt_size_;
134 return x_.size() * elt_size_;
140 template <
typename T>
159 template <
typename T>
166 <std::vector<std::vector<T> > >::type x)
168 cols_(x_.
size() == 0 ? 0 : x_[0].
size()) { }
171 return x_[n / cols_][n % cols_];
174 return x_.size() * cols_;
pass_type< T >::type operator[](int n) const
seq_view(typename pass_type< Eigen::Matrix< S, 1, Eigen::Dynamic > >::type x)
seq_view(typename pass_type< S >::type x)
pass_type< T >::type operator[](int n) const
seq_view(typename pass_type< Eigen::Matrix< S, Eigen::Dynamic, 1 > >::type x)
pass_type< double >::type operator[](int n) const
seq_view(typename pass_type< std::vector< S > >::type x)
seq_view(pass_type< std::vector< int > >::type x)
seq_view(typename pass_type< std::vector< std::vector< T > > >::type x)
pass_type< T >::type operator[](int n) const
pass_type< T >::type operator[](int n) const
pass_type< T >::type operator[](int n) const
pass_type< T >::type operator[](int n) const
seq_view(typename pass_type< Eigen::Matrix< S, Eigen::Dynamic, Eigen::Dynamic > >::type x)
seq_view(typename pass_type< std::vector< T > >::type x)
pass_type< T >::type operator[](int n) const