Stan Math Library
4.9.0
Automatic Differentiation
|
using stan::return_var_matrix_t = typedef std::conditional_t< is_any_var_matrix<ReturnType, Types...>::value, stan::math::var_value< stan::math::promote_scalar_t<double, plain_type_t<ReturnType> >>, stan::math::promote_scalar_t<stan::math::var_value<double>, plain_type_t<ReturnType> >> |
Given an Eigen type and several inputs, determine if a matrix should be var<Matrix>
or Matrix<var>
.
Matrix
will 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 return_var_matrix.hpp.