⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 real.h

📁 Amis - A maximum entropy estimator 一个最大熵模型统计工具
💻 H
字号:
////////////////////////////////////////////////////////////////////////////  Copyright (c) 2000, Yusuke Miyao///  You may distribute under the terms of the Artistic License.//////  <id>$Id: Real.h,v 1.6 2003/05/01 15:26:56 yusuke Exp $</id>///  <collection>Maximum Entropy Estimator</collection>///  <name>Real.h</name>///  <overview>A type for real numbers</overview>/////////////////////////////////////////////////////////////////////////#ifndef Amis_Real_h_#define Amis_Real_h_#include <amis/configure.h>#include <cfloat>#include <cmath>#ifdef HAVE_IEEEFP_H#include <ieeefp.h>#endif#ifdef HAVE_LIMITS#include <limits>AMIS_NAMESPACE_BEGIN#ifdef AMIS_USE_LONG_DOUBLEtypedef long double Real;const Real REAL_MAX = std::numeric_limits<Real>::max();const Real REAL_MIN = std::numeric_limits<Real>::min();const Real REAL_EPSILON = std::numeric_limits<Real>::epsilon();const Real REAL_TOL = REAL_MIN * 1.0E100;const Real REAL_INF = std::numeric_limits<Real>::max() * std::numeric_limits<Real>::max();#else // AMIS_USE_LONG_DOUBLEtypedef double Real;const Real REAL_MAX = std::numeric_limits<Real>::max();const Real REAL_MIN = std::numeric_limits<Real>::min();const Real REAL_EPSILON = std::numeric_limits<Real>::epsilon();const Real REAL_TOL = REAL_MIN * 1.0E100;const Real REAL_INF = std::numeric_limits<Real>::max() * std::numeric_limits<Real>::max();#endif // AMIS_USE_LONG_DOUBLEAMIS_NAMESPACE_END#else // HAVE_LIMITS#include <climits>AMIS_NAMESPACE_BEGIN#ifdef AMIS_USE_LONG_DOUBLEtypedef long double Real;const Real REAL_MAX = DBL_MAX;const Real REAL_MIN = DBL_MIN;const Real REAL_EPSILON = DBL_EPSILON;const Real REAL_TOL = REAL_MIN * 1.0E100;const Real REAL_INF = DBL_MAX * DBL_MAX;#else // AMIS_USE_LONG_DOUBLEtypedef double Real;const Real REAL_MAX = DBL_MAX;const Real REAL_MIN = DBL_MIN;const Real REAL_EPSILON = DBL_EPSILON;const Real REAL_TOL = REAL_MIN * 1.0E100;const Real REAL_INF = DBL_MAX * DBL_MAX;#endif // AMIS_USE_LONG_DOUBLEAMIS_NAMESPACE_END#endif // HAVE_LIMITS#endif // Real_h_// end of Real.h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -