1 #ifndef STAN__MATH__SEQ_VIEW_HPP
2 #define STAN__MATH__SEQ_VIEW_HPP
42 template <
typename T,
typename S>
59 template <
typename T,
typename S>
60 class seq_view<T, Eigen::Matrix<S,Eigen::Dynamic,1> > {
77 template <
typename T,
typename S>
78 class seq_view<T, Eigen::Matrix<S,1,Eigen::Dynamic> > {
97 template <
typename T,
typename S>
98 class seq_view<T, Eigen::Matrix<S,Eigen::Dynamic,Eigen::Dynamic> > {
107 return x_(n / x_.cols(), n % x_.cols());
115 template <
typename T,
typename S>
119 const size_t elt_size_;
130 return x_.size() * elt_size_;
136 template <
typename T>
155 template <
typename T>
163 cols_(x_.
size() == 0 ? 0 : x_[0].
size()) { }
166 return x_[n / cols_][n % cols_];
169 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