Go to the documentation of this file.
7 #ifndef __IPUTILS_HPP__
8 #define __IPUTILS_HPP__
22 return ((a) > (b) ? (a) : (b));
53 return ((a) < (b) ? (a) : (b));
86 return ((a) > (b) ? (a) : (b));
117 return ((a) < (b) ? (a) : (b));
IPOPTLIB_EXPORT bool Compare_le(Number lhs, Number rhs, Number BasVal)
Method for comparing two numbers within machine precision.
Index Max(Index a, Index b)
Index Min(Index a, Index b)
IPOPTLIB_EXPORT bool IsFiniteNumber(Number val)
Function returning true iff the argument is a valid double number (not NaN or Inf).
This file contains a base class for all exceptions and a set of macros to help with exceptions.
double Number
Type of all numbers.
int Index
Type of all indices of vectors, matrices etc.
IPOPTLIB_EXPORT Number IpRandom01()
Function returning a random number between 0 and 1.
IPOPTLIB_EXPORT int Snprintf(char *str, long size, const char *format,...)
Method for printing a formatted output to a string with given size.
IPOPTLIB_EXPORT Number SysTime()
method determining system time
IPOPTLIB_EXPORT Number CpuTime()
method determining CPU time
IPOPTLIB_EXPORT void IpResetRandom01()
Function resetting the random number generator.
IPOPTLIB_EXPORT Number WallclockTime()
method determining wallclock time since first call