1 #ifndef STAN_MATH_MAT_SCAL_META_VECTORVIEW_HPP
2 #define STAN_MATH_MAT_SCAL_META_VECTORVIEW_HPP
7 #include <boost/type_traits.hpp>
11 template <
typename T,
int R,
int C>
26 template <
typename T,
int R,
int C>
29 typedef typename boost::add_const<typename scalar_type<T>::type>::type
boost::conditional< boost::is_const< T >::value, typename boost::add_const< typename scalar_type< T >::type >::type, typename scalar_type< T >::type >::type scalar_t
scalar_type_helper< is_vector< T >::value, T >::type type
(Expert) Numerical traits for algorithmic differentiation variables.
scalar_type< T >::type scalar_t
boost::add_const< typename scalar_type< T >::type >::type scalar_t
scalar_t & operator[](int i) const
VectorView is a template expression that is constructed with a container or scalar, which it then allows to be used as an array using operator[].
scalar_t & operator[](int i)