Stan Math Library  2.20.0
reverse mode automatic differentiation
Public Types | List of all members
stan::math::ad_promotable< T, var > Struct Template Reference

Template traits metaprogram to determine if a variable of one template type is promotable to var. More...

#include <ad_promotable.hpp>

Public Types

enum  { value = ad_promotable<T, double>::value }
 

Detailed Description

template<typename T>
struct stan::math::ad_promotable< T, var >

Template traits metaprogram to determine if a variable of one template type is promotable to var.

It will declare an enum value equal to true if the type is promotable to double, false otherwise.

Template Parameters
Tpromoted type

Definition at line 20 of file ad_promotable.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum
Enumerator
value 

Definition at line 21 of file ad_promotable.hpp.


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

     [ Stan Home Page ] © 2011–2018, Stan Development Team.