Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ promote_var_matrix_t

template<typename ReturnType , typename... Types>
using stan::promote_var_matrix_t = typedef 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> >

Given an Eigen type and several inputs, determine if a matrix should be var<Matrix> or Matrix<var>.

Matrix will not necessarily be a plain type

Template Parameters
ReturnTypeAn Eigen matrix used for composing the var<Matrix> or Matrix<var> type.
TypesParameter pack holding any mix of types. If any of Types are a var<Matrix> this holds a var<Matrix> type. Else the type will be Matrix<var>

Definition at line 22 of file promote_var_matrix.hpp.