From a0d9443af147e949c1e6a01ac24749d12593ec5b Mon Sep 17 00:00:00 2001 From: Harpreet Date: Sat, 3 Sep 2016 00:36:51 +0530 Subject: cbcintlinprog added --- thirdparty/linux/include/coin/CoinFinite.hpp | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 thirdparty/linux/include/coin/CoinFinite.hpp (limited to 'thirdparty/linux/include/coin/CoinFinite.hpp') diff --git a/thirdparty/linux/include/coin/CoinFinite.hpp b/thirdparty/linux/include/coin/CoinFinite.hpp new file mode 100644 index 0000000..71b5b65 --- /dev/null +++ b/thirdparty/linux/include/coin/CoinFinite.hpp @@ -0,0 +1,34 @@ +/* $Id: CoinFinite.hpp 1762 2014-12-29 20:37:12Z tkr $ */ +// Copyright (C) 2002, International Business Machines +// Corporation and others. All Rights Reserved. +// This code is licensed under the terms of the Eclipse Public License (EPL). + +/* Defines COIN_DBL_MAX and relatives and provides CoinFinite and CoinIsnan. */ + +#ifndef CoinFinite_H +#define CoinFinite_H + +#include + +//============================================================================= +// Smallest positive double value and Plus infinity (double and int) + +#if 1 +const double COIN_DBL_MIN = (std::numeric_limits::min)(); +const double COIN_DBL_MAX = (std::numeric_limits::max)(); +const int COIN_INT_MAX = (std::numeric_limits::max)(); +const double COIN_INT_MAX_AS_DOUBLE = (std::numeric_limits::max)(); +#else +#define COIN_DBL_MIN (std::numeric_limits::min()) +#define COIN_DBL_MAX (std::numeric_limits::max()) +#define COIN_INT_MAX (std::numeric_limits::max()) +#define COIN_INT_MAX_AS_DOUBLE (std::numeric_limits::max()) +#endif + +/** checks if a double value is finite (not infinity and not NaN) */ +extern bool CoinFinite(double val); + +/** checks if a double value is not a number */ +extern bool CoinIsnan(double val); + +#endif -- cgit