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>
45 int size()
const {
return 1; }
48 template <
typename T,
typename S>
55 typename pass_type<Eigen::Matrix<S, Eigen::Dynamic, 1> >::
type x)
58 int size()
const {
return x_.size(); }
61 template <
typename T,
typename S>
68 typename pass_type<Eigen::Matrix<S, 1, Eigen::Dynamic> >::
type x)
71 int size()
const {
return x_.size(); }
75 template <
typename T,
typename S>
83 Eigen::Matrix<S, Eigen::Dynamic, Eigen::Dynamic> >::
type x)
86 return x_(n / x_.cols(), n % x_.cols());
88 int size()
const {
return x_.size(); }
92 template <
typename T,
typename S>
96 const size_t elt_size_;
104 int size()
const {
return x_.size() * elt_size_; }
109 template <
typename T>
117 int size()
const {
return x_.size(); }
122 template <
typename T>
130 : x_(x), cols_(x_.
size() == 0 ? 0 : x_[0].
size()) {}
132 return x_[n / cols_][n % cols_];
134 int size()
const {
return x_.size() * cols_; }
145 int size()
const {
return x_.size(); }
pass_type< T >::type operator[](int n) const
pass_type< double >::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< T >::type operator[](int n) const
pass_type< T >::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
int size(const std::vector< T > &x)
Return the size of the specified standard vector.
pass_type< T >::type operator[](int n) const
seq_view(typename pass_type< Eigen::Matrix< S, Eigen::Dynamic, Eigen::Dynamic > >::type x)
pass_type< T >::type operator[](int n) const
seq_view(typename pass_type< std::vector< T > >::type x)