Automatic Differentiation
 
Loading...
Searching...
No Matches
promote_var_matrix.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_META_PROMOTE_VAR_MATRIX
2#define STAN_MATH_REV_META_PROMOTE_VAR_MATRIX
3
6
7namespace stan {
8
21template <typename ReturnType, typename... Types>
22using promote_var_matrix_t = std::conditional_t<
23 is_any_var_matrix<ReturnType, Types...>::value,
26} // namespace stan
27
28#endif
typename promote_scalar_type< std::decay_t< T >, std::decay_t< S > >::type promote_scalar_t
std::conditional_t< is_any_var_matrix< ReturnType, Types... >::value, stan::math::var_value< stan::math::promote_scalar_t< double, ReturnType > >, stan::math::promote_scalar_t< stan::math::var_value< double >, ReturnType > > promote_var_matrix_t
Given an Eigen type and several inputs, determine if a matrix should be var<Matrix> or Matrix<var>.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Check if any types in a parameter pack are a var_value whose value_type is derived from Eigen::EigenB...