1 #ifndef STAN_MATH_PRIM_MAT_META_SEQ_VIEW_HPP
2 #define STAN_MATH_PRIM_MAT_META_SEQ_VIEW_HPP
37 template <
typename T,
typename S>
54 template <
typename T,
typename S>
60 pass_type<Eigen::Matrix<S, Eigen::Dynamic, 1> >::type x)
72 template <
typename T,
typename S>
78 <Eigen::Matrix<S, 1, Eigen::Dynamic> >::type x)
91 template <
typename T,
typename S>
95 <S, Eigen::Dynamic, Eigen::Dynamic> >::type x_;
99 <S, Eigen::Dynamic, Eigen::Dynamic> >::type x)
104 return x_(n / x_.cols(), n % x_.cols());
112 template <
typename T,
typename S>
116 const size_t elt_size_;
127 return x_.size() * elt_size_;
133 template <
typename T>
152 template <
typename T>
159 <std::vector<std::vector<T> > >::type x)
161 cols_(x_.
size() == 0 ? 0 : x_[0].
size()) { }
167 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)
(Expert) Numerical traits for algorithmic differentiation variables.
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