1#ifndef STAN_MATH_PRIM_META_SEQ_VIEW_HPP
2#define STAN_MATH_PRIM_META_SEQ_VIEW_HPP
37template <
typename T,
typename S>
45 int size()
const {
return 1; }
48template <
typename T,
typename S>
55 typename pass_type<Eigen::Matrix<S, Eigen::Dynamic, 1> >::type x)
58 int size()
const {
return x_.size(); }
61template <
typename T,
typename S>
68 typename pass_type<Eigen::Matrix<S, 1, Eigen::Dynamic> >::type x)
71 int size()
const {
return x_.size(); }
75template <
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(); }
92template <
typename T,
typename S>
104 int size()
const {
return x_.size() * elt_size_; }
132 return x_[n / cols_][n % cols_];
134 int size()
const {
return x_.size() * cols_; }
seq_view(typename pass_type< Eigen::Matrix< S, 1, Eigen::Dynamic > >::type x)
store_type< Eigen::Matrix< S, 1, Eigen::Dynamic > >::type x_
pass_type< T >::type operator[](int n) const
pass_type< T >::type operator[](int n) const
store_type< Eigen::Matrix< S, Eigen::Dynamic, 1 > >::type x_
seq_view(typename pass_type< Eigen::Matrix< S, Eigen::Dynamic, 1 > >::type x)
seq_view(typename pass_type< Eigen::Matrix< S, Eigen::Dynamic, Eigen::Dynamic > >::type x)
pass_type< T >::type operator[](int n) const
store_type< Eigen::Matrix< S, Eigen::Dynamic, Eigen::Dynamic > >::type x_
seq_view(typename pass_type< std::vector< S > >::type x)
store_type< std::vector< S > >::type x_
pass_type< T >::type operator[](int n) const
seq_view(typename pass_type< std::vector< T > >::type x)
store_type< std::vector< T > >::type x_
pass_type< T >::type operator[](int n) const
store_type< std::vector< std::vector< T > > >::type x_
pass_type< T >::type operator[](int n) const
seq_view(typename pass_type< std::vector< std::vector< T > > >::type x)
pass_type< double >::type operator[](int n) const
store_type< std::vector< int > >::type x_
seq_view(pass_type< std::vector< int > >::type x)
seq_view(typename pass_type< S >::type x)
pass_type< T >::type operator[](int n) const
(Expert) Numerical traits for algorithmic differentiation variables.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...