Stan Math Library  2.14.0
reverse mode automatic differentiation
Public Types | Static Public Member Functions | List of all members
Eigen::NumTraits< stan::math::fvar< T > > Struct Template Reference

Numerical traits template override for Eigen for automatic gradient variables. More...

#include <Eigen_NumTraits.hpp>

Inheritance diagram for Eigen::NumTraits< stan::math::fvar< T > >:

Public Types

enum  { RequireInitialization = 1, ReadCost = 2 * NumTraits<double>::ReadCost, AddCost = 2 * NumTraits<T>::AddCost, MulCost = 3 * NumTraits<T>::MulCost + NumTraits<T>::AddCost }
 

Static Public Member Functions

static int digits10 ()
 Return the number of decimal digits that can be represented without change. More...
 

Detailed Description

template<typename T>
struct Eigen::NumTraits< stan::math::fvar< T > >

Numerical traits template override for Eigen for automatic gradient variables.

Definition at line 16 of file Eigen_NumTraits.hpp.

Member Enumeration Documentation

§ anonymous enum

template<typename T >
anonymous enum
Enumerator
RequireInitialization 

stan::math::fvar requires initialization

ReadCost 

twice the cost to copy a double

AddCost 

2 * AddCost
(a + b) = a + b
(a + b)' = a' + b'

MulCost 

3 * MulCost + AddCost
(a * b) = a * b
(a * b)' = a' * b + a * b'

Definition at line 19 of file Eigen_NumTraits.hpp.

Member Function Documentation

§ digits10()

template<typename T >
static int Eigen::NumTraits< stan::math::fvar< T > >::digits10 ( )
inlinestatic

Return the number of decimal digits that can be represented without change.

Delegates to std::numeric_limits<double>::digits10().

Definition at line 54 of file Eigen_NumTraits.hpp.


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

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