| Stan Math Library 2.12.0 reverse mode automatic differentiation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | 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 }

## 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

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.

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

- stan/math/fwd/mat/fun/Eigen_NumTraits.hpp

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