![]() |
Stan Math Library
2.15.0
reverse mode automatic differentiation
|
Numerical traits template override for Eigen for automatic gradient variables. More...
#include <Eigen_NumTraits.hpp>
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... | |
Numerical traits template override for Eigen for automatic gradient variables.
Definition at line 16 of file Eigen_NumTraits.hpp.
anonymous enum |
Enumerator | |
---|---|
RequireInitialization | stan::math::fvar requires initialization |
ReadCost | twice the cost to copy a double |
AddCost | 2 * AddCost |
MulCost | 3 * MulCost + AddCost |
Definition at line 19 of file Eigen_NumTraits.hpp.
|
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.