![]() |
Stan Math Library
2.14.0
reverse mode automatic differentiation
|
Numerical traits template override for Eigen for automatic gradient variables. More...
#include <Eigen_NumTraits.hpp>
Public Types | |
| enum | { IsComplex = 0, IsInteger = 0, IsSigned = 1, RequireInitialization = 0, ReadCost = 2 * NumTraits<double>::ReadCost, AddCost = NumTraits<double>::AddCost, MulCost = NumTraits<double>::MulCost } |
| typedef stan::math::var | Real |
| typedef stan::math::var | NonInteger |
| typedef stan::math::var | Nested |
Static Public Member Functions | |
| static stan::math::var | dummy_precision () |
Return the precision for stan::math::var delegates to precision for douboe. More... | |
| 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.
Documentation here: http://eigen.tuxfamily.org/dox/structEigen_1_1NumTraits.html
Definition at line 19 of file Eigen_NumTraits.hpp.
| typedef stan::math::var Eigen::NumTraits< stan::math::var >::Nested |
Definition at line 22 of file Eigen_NumTraits.hpp.
| typedef stan::math::var Eigen::NumTraits< stan::math::var >::NonInteger |
Definition at line 21 of file Eigen_NumTraits.hpp.
| typedef stan::math::var Eigen::NumTraits< stan::math::var >::Real |
Definition at line 20 of file Eigen_NumTraits.hpp.
| anonymous enum |
| Enumerator | |
|---|---|
| IsComplex | stan::math::var is not complex. |
| IsInteger | stan::math::var is not an integer. |
| IsSigned | stan::math::var is signed. |
| RequireInitialization | stan::math::var does not require initialization. |
| ReadCost | Twice the cost of copying a double. |
| AddCost | This is just forward cost, but it's the cost of a single addition (plus memory overhead) in the forward direction. |
| MulCost | Multiply cost is single multiply going forward, but there's also memory allocation cost. |
Definition at line 34 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 79 of file Eigen_NumTraits.hpp.
|
inlinestatic |
Return the precision for stan::math::var delegates to precision for douboe.
Definition at line 30 of file Eigen_NumTraits.hpp.