All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
promote_common.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_PROMOTE_COMMON_HPP
#define STAN_MATH_PRIM_MAT_FUN_PROMOTE_COMMON_HPP
#include <stan/math/prim/mat/fun/common_type.hpp>
#include <stan/math/prim/mat/fun/promoter.hpp>
namespace stan {
namespace math {
template <typename T1, typename T2, typename F>
inline
typename common_type<T1, T2>::type
promote_common(const F& u) {
return promoter<F, typename common_type<T1, T2>::type>
::promote_to(u);
}
}
}
#endif
promoter.hpp
stan::math::promote_common
common_type< T1, T2 >::type promote_common(const F &u)
Definition: promote_common.hpp:14
common_type.hpp
stan::math::promoter
Definition: promoter.hpp:14

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