Stan Math Library  2.20.0
reverse mode automatic differentiation
partials_return_type.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_META_PARTIALS_RETURN_TYPE_HPP
2 #define STAN_MATH_PRIM_SCAL_META_PARTIALS_RETURN_TYPE_HPP
3 
6 #include <boost/math/tools/promotion.hpp>
7 
8 namespace stan {
9 
32 template <typename T, typename... T_pack>
34  typedef typename boost::math::tools::promote_args<
36  typename partials_return_type<T_pack...>::type>::type type;
37 };
38 
39 template <typename T>
41  typedef typename boost::math::tools::promote_args<
44 };
45 
46 } // namespace stan
47 #endif
boost::math::tools::promote_args< double, typename partials_type< typename scalar_type< T >::type >::type, typename partials_return_type< T_pack... >::type >::type type
boost::math::tools::promote_args< double, typename partials_type< typename scalar_type< T >::type >::type >::type type
Template metaprogram to calculate the partial derivative type resulting from promoting all the scalar...

     [ Stan Home Page ] © 2011–2018, Stan Development Team.