1 #ifndef STAN_MATH_PRIM_SCAL_META_SCALAR_TYPE_HPP
2 #define STAN_MATH_PRIM_SCAL_META_SCALAR_TYPE_HPP
14 template <
bool is_vec,
typename T>
15 struct scalar_type_helper {
20 struct scalar_type_helper<true, T> {
22 scalar_type_helper<is_vector<
typename
38 typedef typename scalar_type_helper<is_vector<T>::value, T>
::type type;
43 struct scalar_type<Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> > {
scalar_type< T >::type type
Metaprogram structure to determine the base scalar type of a template argument.
scalar_type_helper< is_vector< T >::value, T >::type type
scalar_type< T >::type type
Primary template class for metaprogram to compute the type of values stored in a container.