std_numeric_limits.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_REV_CORE_STD_NUMERIC_LIMITS_HPP
#define STAN_MATH_REV_CORE_STD_NUMERIC_LIMITS_HPP
#include <stan/math/rev/core/var.hpp>
#include <limits>
namespace std {
template<>
struct numeric_limits<stan::math::var> {
static const bool is_specialized = true;
static stan::math::var min() { return numeric_limits<double>::min(); }
static stan::math::var max() { return numeric_limits<double>::max(); }
static const int digits = numeric_limits<double>::digits;
static const int digits10 = numeric_limits<double>::digits10;
static const bool is_signed = numeric_limits<double>::is_signed;
static const bool is_integer = numeric_limits<double>::is_integer;
static const bool is_exact = numeric_limits<double>::is_exact;
static const int radix = numeric_limits<double>::radix;
static stan::math::var epsilon() {
return numeric_limits<double>::epsilon();
}
static stan::math::var round_error() {
return numeric_limits<double>::round_error();
}
static const int min_exponent = numeric_limits<double>::min_exponent;
static const int min_exponent10 = numeric_limits<double>::min_exponent10;
static const int max_exponent = numeric_limits<double>::max_exponent;
static const int max_exponent10 = numeric_limits<double>::max_exponent10;
static const bool has_infinity = numeric_limits<double>::has_infinity;
static const bool has_quiet_NaN = numeric_limits<double>::has_quiet_NaN;
static const bool has_signaling_NaN
= numeric_limits<double>::has_signaling_NaN;
static const float_denorm_style has_denorm
= numeric_limits<double>::has_denorm;
static const bool has_denorm_loss = numeric_limits<double>::has_denorm_loss;
static stan::math::var infinity() {
return numeric_limits<double>::infinity();
}
static stan::math::var quiet_NaN() {
return numeric_limits<double>::quiet_NaN();
}
static stan::math::var signaling_NaN() {
return numeric_limits<double>::signaling_NaN();
}
static stan::math::var denorm_min() {
return numeric_limits<double>::denorm_min();
}
static const bool is_iec559 = numeric_limits<double>::is_iec559;
static const bool is_bounded = numeric_limits<double>::is_bounded;
static const bool is_modulo = numeric_limits<double>::is_modulo;
static const bool traps = numeric_limits<double>::traps;
static const bool tinyness_before = numeric_limits<double>::tinyness_before;
static const float_round_style round_style
= numeric_limits<double>::round_style;
};
}
#endif
std::numeric_limits< stan::math::var >::denorm_min
static stan::math::var denorm_min()
Definition: std_numeric_limits.hpp:54
std::numeric_limits< stan::math::var >::min
static stan::math::var min()
Definition: std_numeric_limits.hpp:18
stan::math::min
int min(const std::vector< int > &x)
Returns the minimum coefficient in the specified column vector.
Definition: min.hpp:20
stan
Definition: log_sum_exp.hpp:8
std
Definition: std_numeric_limits.hpp:7
stan::math::var
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:30
std::numeric_limits< stan::math::var >::signaling_NaN
static stan::math::var signaling_NaN()
Definition: std_numeric_limits.hpp:51
std::numeric_limits< stan::math::var >::round_error
static stan::math::var round_error()
Definition: std_numeric_limits.hpp:29
std::numeric_limits< stan::math::var >::quiet_NaN
static stan::math::var quiet_NaN()
Definition: std_numeric_limits.hpp:48
var.hpp
stan::math::max
int max(const std::vector< int > &x)
Returns the maximum coefficient in the specified column vector.
Definition: max.hpp:22
std::numeric_limits< stan::math::var >::epsilon
static stan::math::var epsilon()
Definition: std_numeric_limits.hpp:26
std::numeric_limits< stan::math::var >::max
static stan::math::var max()
Definition: std_numeric_limits.hpp:19
std::numeric_limits< stan::math::var >::infinity
static stan::math::var infinity()
Definition: std_numeric_limits.hpp:45

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