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>> : GenericNumTraits<stan::math::fvar<T>> {
21 RequireInitialization = 1,
26 ReadCost = 2 * NumTraits<double>::ReadCost,
35 AddCost = 2 * NumTraits<T>::AddCost,
44 MulCost = 3 * NumTraits<T>::MulCost + NumTraits<T>::AddCost
52 static int digits10() {
return std::numeric_limits<double>::digits10; }
62 struct scalar_product_traits<
stan::math::fvar<T>, double> {
71 struct scalar_product_traits<double,
stan::math::fvar<T>> {
stan::math::fvar< T > ReturnType
(Expert) Numerical traits for algorithmic differentiation variables.
stan::math::fvar< T > ReturnType
static int digits10()
Return the number of decimal digits that can be represented without change.
This template class represents scalars used in forward-mode automatic differentiation, which consist of values and directional derivatives of the specified template type.