Stan Math Library
5.0.0
Automatic Differentiation
|
Conditionally construct a var_value container based on a scalar type.
For var types as the scalar, the var_value<Matrix>
's inner type will have a scalar of a double.
T_scalar | Determines the scalar (var/double) of the type. |
T_container | Determines the container (matrix/vector/matrix_cl ...) of the type. |
Definition at line 19 of file conditional_var_value.hpp.
#include <conditional_var_value.hpp>
Public Types | |
using | type = std::conditional_t< is_var< scalar_type_t< T_scalar > >::value, math::var_value< math::promote_scalar_t< double, plain_type_t< T_container > > >, plain_type_t< T_container > > |