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

◆ return_var_matrix_t

template<typename ReturnType , typename... Types>
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

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 return_var_matrix.hpp.