1 #ifndef STAN_MATH_FWD_MAT_FUN_EIGEN_NUMTRAITS_HPP 2 #define STAN_MATH_FWD_MAT_FUN_EIGEN_NUMTRAITS_HPP 16 struct NumTraits<
stan::math::fvar<T> >
17 : GenericNumTraits<stan::math::fvar<T> > {
23 RequireInitialization = 1,
28 ReadCost = 2 * NumTraits<double>::ReadCost,
37 AddCost = 2 * NumTraits<T>::AddCost,
46 MulCost = 3 * NumTraits<T>::MulCost + NumTraits<T>::AddCost
55 return std::numeric_limits<double>::digits10;
60 #if EIGEN_VERSION_AT_LEAST(3, 3, 0) 66 struct significant_decimals_default_impl<
stan::math::fvar<T>, false> {
67 static inline int run() {
70 return cast<double, int>
71 (
ceil(-
log(std::numeric_limits<double>::epsilon())
fvar< T > log(const fvar< T > &x)
(Expert) Numerical traits for algorithmic differentiation variables.
static int digits10()
Return the number of decimal digits that can be represented without change.
fvar< T > ceil(const fvar< T > &x)