Definition in file eg_lpnum.dbl.h.
#include <float.h>
#include "eg_lpnum.h"
Include dependency graph for eg_lpnum.dbl.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
#define | EGLPNUM_ISFP 1 |
#define | EGLPNUM_MAXCONVORDER 2U |
#define | EGlpNum_t double |
#define | EGlpNumAddInnProdTo(a, b, c) dbl_EGlpNumAddInnProdTo(a,b,c) |
#define | EGlpNumAddTo(a, b) dbl_EGlpNumAddTo(a,b) |
#define | EGlpNumAddUiTo(a, b) dbl_EGlpNumAddUiTo(a,b) |
#define | EGlpNumAllocArray(size) dbl_EGlpNumAllocArray(size) |
#define | EGlpNumCeil(a, b) dbl_EGlpNumCeil(a,b) |
#define | EGlpNumClearVar(a) dbl_EGlpNumClearVar(a) |
#define | EGlpNumCopy(dest, orig) dbl_EGlpNumCopy(dest,orig) |
#define | EGlpNumCopyAbs(dest, orig) dbl_EGlpNumCopyAbs(dest,orig) |
#define | EGlpNumCopyArray(dest, orig, size) dbl_EGlpNumCopyArray(dest,orig,size) |
#define | EGlpNumCopyDiff(dest, a, b) dbl_EGlpNumCopyDiff(dest,a,b) |
#define | EGlpNumCopyDiffRatio(a, b, c, d) dbl_EGlpNumCopyDiffRatio(a,b,c,d) |
#define | EGlpNumCopyFrac(dest, op1, op2) dbl_EGlpNumCopyFrac(dest,op1,op2) |
#define | EGlpNumCopyNeg(dest, orig) dbl_EGlpNumCopyNeg(dest,orig) |
#define | EGlpNumCopySqrOver(dest, orig, den) dbl_EGlpNumCopySqrOver(dest,orig,den) |
#define | EGlpNumCopySum(dest, a, b) dbl_EGlpNumCopySum(dest,a,b) |
#define | EGlpNumDivTo(a, b) dbl_EGlpNumDivTo(a,b) |
#define | EGlpNumDivUiTo(a, b) dbl_EGlpNumDivUiTo(a,b) |
#define | EGlpNumFloor(a, b) dbl_EGlpNumFloor(a,b) |
#define | EGlpNumFreeArray(ea) dbl_EGlpNumFreeArray(ea) |
#define | EGlpNumGetStr(a) dbl_EGlpNumGetStr(a) |
#define | EGlpNumInitVar(a) dbl_EGlpNumInitVar(a) |
#define | EGlpNumInv(a) dbl_EGlpNumInv(a) |
#define | EGlpNumIsDiffLess(a, b, c) dbl_EGlpNumIsDiffLess(a,b,c) |
#define | EGlpNumIsEqqual(a, b) dbl_EGlpNumIsEqqual(a,b) |
#define | EGlpNumIsEqual(a, b, error) dbl_EGlpNumIsEqual(a,b,error) |
#define | EGlpNumIsGreaDbl(a, b) dbl_EGlpNumIsGreaDbl(a,b) |
#define | EGlpNumIsLeq(a, b) dbl_EGlpNumIsLeq(a,b) |
#define | EGlpNumIsLess(a, b) dbl_EGlpNumIsLess(a,b) |
#define | EGlpNumIsLessDbl(a, b) dbl_EGlpNumIsLessDbl(a,b) |
#define | EGlpNumIsNeq(a, b, error) dbl_EGlpNumIsNeq(a,b,error) |
#define | EGlpNumIsNeqq(a, b) dbl_EGlpNumIsNeqq(a,b) |
#define | EGlpNumIsNeqqZero(a) dbl_EGlpNumIsNeqqZero(a) |
#define | EGlpNumIsNeqZero(a, error) dbl_EGlpNumIsNeqZero(a,error) |
#define | EGlpNumIsSumLess(a, b, c) dbl_EGlpNumIsSumLess(a,b,c) |
#define | EGlpNumMultTo(a, b) dbl_EGlpNumMultTo(a,b) |
#define | EGlpNumMultUiTo(a, b) dbl_EGlpNumMultUiTo(a,b) |
#define | EGlpNumOne(a) dbl_EGlpNumOne(a) |
#define | EGlpNumReadStr(a, str) dbl_EGlpNumReadStr(a,str) |
#define | EGlpNumReallocArray(lptr, size) dbl_EGlpNumReallocArray(lptr,size) |
#define | EGlpNumSet(var, dbl) dbl_EGlpNumSet(var,dbl) |
#define | EGlpNumSetToMaxAbs(dest, orig) dbl_EGlpNumSetToMaxAbs(dest,orig) |
#define | EGlpNumSetToMinAbs(dest, orig) dbl_EGlpNumSetToMinAbs(dest,orig) |
#define | EGlpNumSign(a) dbl_EGlpNumSign(a) |
#define | EGlpNumSubInnProdTo(a, b, c) dbl_EGlpNumSubInnProdTo(a,b,c) |
#define | EGlpNumSubTo(a, b) dbl_EGlpNumSubTo(a,b) |
#define | EGlpNumSubUiTo(a, b) dbl_EGlpNumSubUiTo(a,b) |
#define | EGlpNumToLf(a) dbl_EGlpNumToLf(a) |
#define | EGlpNumZero(a) dbl_EGlpNumZero(a) |
#define | epsLpNum dbl_epsLpNum |
#define | oneLpNum dbl_oneLpNum |
#define | zeroLpNum dbl_zeroLpNum |
Defines | |
#define | dbl_EGlpNumAddInnProdTo(a, b, c) ((a) += (b)*(c)) |
Add to a given number the product of two numbers. | |
#define | dbl_EGlpNumAddTo(a, b) ((a) += (b)) |
Add to a given number the value of the second number. | |
#define | dbl_EGlpNumAddUiTo(a, b) ((a) += (b)) |
Add to a given number the value of the second number. | |
#define | dbl_EGlpNumAllocArray(size) __EGlpNumAllocArray(double,size) |
Allocate and initialize (if needed) 'size' elements of type double and return it, if no more memory, exit(1). | |
#define | dbl_EGlpNumCeil(a, b) ((a) = ceil(b)) |
Stores in the first number the ceil value of the second number, i.e. EGlpNumCeil(a,b) <==> a= ceil(b). | |
#define | dbl_EGlpNumClearVar(a) |
free the internal memory of a given variable | |
#define | dbl_EGlpNumCopy(dest, orig) ((dest) = (orig)) |
copy the value of the second number to the first. | |
#define | dbl_EGlpNumCopyAbs(dest, orig) ((dest) = fabs(orig)) |
copy the value of the absolute value of the second parameter to the first parameter. | |
#define | dbl_EGlpNumCopyArray(dest, orig, size) memcpy(dest,orig,sizeof(double)*(size)) |
copy the first 'size' values in the second array to the first array. | |
#define | dbl_EGlpNumCopyDiff(dest, a, b) ((dest) = (a) - (b)) |
copy the value of the second number to the first. | |
#define | dbl_EGlpNumCopyDiffRatio(dest, a, b, den) ((dest) = ((a) - (b)) / (den)) |
copy the value of the second number to the first. | |
#define | dbl_EGlpNumCopyFrac(dest, op1, op2) ((dest) = (op1)/(op2)) |
Set des = op1/op2. | |
#define | dbl_EGlpNumCopyNeg(dest, orig) ((dest) = -(orig)) |
copy minus the value of the second parameter to the first parameter. | |
#define | dbl_EGlpNumCopySqrOver(dest, orig, den) ((dest) = (orig)*(orig)/(den)) |
copy the square of the second argument, divided by the third argument into the first argument. | |
#define | dbl_EGlpNumCopySum(dest, a, b) ((dest) = (a) + (b)) |
copy the value of the sum of the second and third parameter | |
#define | dbl_EGlpNumDivTo(a, b) ((a) /= (b)) |
Divide a given number by the value of the second number. | |
#define | dbl_EGlpNumDivUiTo(a, b) ((a) /= (b)) |
Divide a given number by the value of the second number. | |
#define | dbl_EGlpNumFloor(a, b) ((a) = floor(b)) |
Stores in the first number the floor value of the second number, i.e. EGlpNumFloor(a,b) <==> a= floor(b). | |
#define | dbl_EGlpNumFreeArray(ea) __EGlpNumFreeArray(ea) |
given an array of type double, free it, if the pointer is NULL nothing happen. | |
#define | dbl_EGlpNumGetStr(a) |
given a double, write it to a string (to be allocated internally), and return it. | |
#define | dbl_EGlpNumInitVar(a) dbl_EGlpNumZero(a) |
initialize the internal memory of a given variable | |
#define | dbl_EGlpNumInv(a) ((a) = 1.0/(a)) |
store the (multiplicative) inverse of a number to itself, i.e. implement a = 1/a. | |
#define | dbl_EGlpNumIsDiffLess(a, b, c) ((a) - (b) < (c)) |
test if the diference of the first two numbers is less thatn the third number. | |
#define | dbl_EGlpNumIsEqqual(a, b) ((a) == (b)) |
Compare if two numbers are equal within a maximum error. | |
#define | dbl_EGlpNumIsEqual(a, b, error) (fabs((a)-(b)) <= (error)) |
Compare if two numbers are equal within a maximum error. | |
#define | dbl_EGlpNumIsGreaDbl(a, b) ((a) > (b)) |
test if the first number is bigger to the second number | |
#define | dbl_EGlpNumIsLeq(a, b) ((a) <= (b)) |
test if the first number is bigger to the second number | |
#define | dbl_EGlpNumIsLess(a, b) (a < b) |
test if the first number is bigger to the second number | |
#define | dbl_EGlpNumIsLessDbl(a, b) ((a) < (b)) |
test if the first number is bigger to the second number | |
#define | dbl_EGlpNumIsNeq(a, b, error) (((a)-(b) > (error)) || ((b)-(a) > (error))) |
#define | dbl_EGlpNumIsNeqq(a, b) ((a) != (b)) |
#define | dbl_EGlpNumIsNeqqZero(a) ((a) != 0.0) |
#define | dbl_EGlpNumIsNeqZero(a, error) (((a) > (error)) || (-(a) > (error))) |
#define | dbl_EGlpNumIsSumLess(a, b, c) ((a) + (b) < (c)) |
test if the sum of the first two numbers is less thatn the third number. | |
#define | dbl_EGlpNumMultTo(a, b) ((a) *= (b)) |
Multiply a given number by the value of the second number. | |
#define | dbl_EGlpNumMultUiTo(a, b) ((a) *= (b)) |
Multiply a given number by the value of the second number. | |
#define | dbl_EGlpNumOne(a) ((a) = 1.0) |
Reset the value of the pointed number to one. | |
#define | dbl_EGlpNumReadStr(a, str) |
Read from a string a number and store it in the given double,. | |
#define | dbl_EGlpNumReallocArray(lptr, lsize) |
Reallocate and initialize (if needed) 'size' elements of type EGlpNum_t and return it, if no more memory, exit(1). | |
#define | dbl_EGlpNumSet(var, dbl) ((var) = (dbl)) |
set the given number pointer, set its value to the given double. | |
#define | dbl_EGlpNumSetToMaxAbs(dest, orig) |
change the fist number to the maximum between itself and the absolute value of the second. | |
#define | dbl_EGlpNumSetToMinAbs(dest, orig) |
#define | dbl_EGlpNumSign(a) ((a) = -(a)) |
Change the sign of the number. | |
#define | dbl_EGlpNumSubInnProdTo(a, b, c) ((a) -= (b)*(c)) |
Sub to a given number the product of two numbers. | |
#define | dbl_EGlpNumSubTo(a, b) ((a) -= (b)) |
Substract to a given number the value of the second number. | |
#define | dbl_EGlpNumSubUiTo(a, b) ((a) -= (b)) |
Substract to a given number the value of the second number. | |
#define | dbl_EGlpNumToLf(a) ((double)a) |
return the closest double value of the given pointer number. | |
#define | dbl_EGlpNumZero(a) ((a) = 0.0) |
Reset the value of the pointed number to zero. | |
#define | dbl_epsLpNum DBL_EPSILON |
#define | dbl_oneLpNum 1.0 |
#define | dbl_zeroLpNum 0.0 |