Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::conditional_var_value< T_scalar, T_container, typename > Struct Template Reference

Detailed Description

template<typename T_scalar, typename T_container, typename = void>
struct stan::conditional_var_value< T_scalar, T_container, typename >

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.

Template Parameters
T_scalarDetermines the scalar (var/double) of the type.
T_containerDetermines 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 > >
 

The documentation for this struct was generated from the following file: