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

Template traits metaprogram to determine if a variable of one template type is promotable to the base type of a second fvar template type. More...

#include <ad_promotable.hpp>

Public Types

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

Detailed Description

template<typename V, typename T>
struct stan::math::ad_promotable< V, fvar< T > >

Template traits metaprogram to determine if a variable of one template type is promotable to the base type of a second fvar template type.

It will declare an enum value equal to true if the variable type is promotable to the base type of the fvar template type, false otherwise.

Template Parameters
Tpromoted type

Definition at line 24 of file ad_promotable.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename V , typename T >
anonymous enum
Enumerator
value 

Definition at line 25 of file ad_promotable.hpp.


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

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