Stan Math Library
4.9.0
Automatic Differentiation
|
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
ReturnType | An Eigen matrix used for composing the var<Matrix> or Matrix<var> type. |
Types | Parameter 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.