37 #if defined (AIPS_SOLARIS) || defined(AIPS_IRIX)
151 {
if (point >= 0.0)
return Int (point);
else return Int(point - 1.0); }
153 {
if (point >= 0.0)
return Int(point);
else return Int(point - 1.0); }
196 inline Int sign(
Int val) {
return val<0 ? -1 : (val>0 ? 1:0);}
210 if (r != 0 && (x<0) != (y<0)) r+=y;
216 if (r != 0 && (x<0) != (y<0)) r+=y;
222 if (r != 0 && (x<0) != (y<0)) r+=y;
228 if (r != 0 && (x<0) != (y<0)) r+=y;
251 {
return near(val1, val2, tol); }
253 {
return near(val1, val2, tol); }
255 {
return near(val1, val2, tol); }
257 {
return near(val1, val2, tol); }
259 {
return near(val1, val2, tol); }
261 {
return near(val1, val2, tol); }
280 {
return nearAbs(val1, val2, tol); }
282 {
return nearAbs(val1, val2, tol); }
284 {
return nearAbs(val1, val2, tol); }
286 {
return nearAbs(val1, val2, tol); }
288 {
return nearAbs(val1, val2, tol); }
290 {
return nearAbs(val1, val2, tol); }
299 #if defined(AIPS_DARWIN)
307 #if defined(AIPS_DARWIN)
321 return (((*(
Int *)&(val) & 0x7f800000) == 0x7f800000) &&
322 ((*(
Int *)&(val) & 0x007fffff) != 0x00000000));
346 void setNaN(
Float& val);
361 void setInf(
Float& val);
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
Double max(Double a, Double b)
Bool allNear(uInt val1, uInt val2, Double tol=1.0e-5)
The "allNear" versions are aliases for the normal "near" versions.
Double min(Double a, Double b)
Bool isFinite(const Double &val)
unsigned long long uInt64
Int sign(Int val)
Return the sign of a value.
Bool near(const GaussianBeam &left, const GaussianBeam &other, const Double relWidthTol, const Quantity &absPaTol)
Bool allNear(Float val1, Float val2, Double tol=1.0e-5)
Bool allNear(Int val1, Int val2, Double tol=1.0e-5)
Double square(Double val)
Float max(Float a, Float b)
Bool isFinite(const Float &val)
Functions to test if a floating point number is finite.
Bool allNear(Float val1, Double val2, Double tol=1.0e-5)
Double min(Float a, Double b)
Double max(Float a, Double b)
Float pow(Float f1, Double f2)
Returns f1**f2.
Double floormod(Double x, Double y)
bool isnan(const std::complex< T > &val)
bool isfinite(const std::complex< T > &val)
Float min(Float a, Float b)
Bool allNearAbs(Double val1, Float val2, Double tol=1.0e-5)
Int cube(Int val)
Return the cube of a value.
TableExprNode isInf(const TableExprNode &node)
Bool allNear(Double val1, Double val2, Double tol=1.0e-13)
Int floormod(Int x, Int y)
Return the floor modulo as used by Python (unlike C); divisor sign is used.
Bool allNearAbs(Int val1, Int val2, Int tol=1)
Int64 floormod(Int64 x, Int64 y)
uInt64 max(uInt64 a, uInt64 b)
Bool allNear(Double val1, Float val2, Double tol=1.0e-5)
Int max(Int a, Int b)
Functions to get the max or min of two numbers.
bool Bool
Define the standard types used by Casacore.
Bool allNearAbs(uInt val1, uInt val2, uInt tol=1)
The "allNearAbs" versions are aliases for the normal "nearAbs" versions.
Int square(Int val)
Return the square of a value.
Float pow(Double f1, Float f2)
Bool isNaN(const Float &val)
Functions to test for IEEE NaN's.
Float floormod(Float x, Float y)
uInt64 min(uInt64 a, uInt64 b)
LatticeExprNode fmod(const LatticeExprNode &left, const LatticeExprNode &right)
Bool allNearAbs(Double val1, Double val2, Double tol=1.0e-13)
const Double e
e and functions thereof:
Double max(Double a, Float b)
Bool allNearAbs(Float val1, Float val2, Double tol=1.0e-5)
TableExprNode nearAbs(const TableExprNode &left, const TableExprNode &right)
Double min(Double a, Float b)
LatticeExprNode pow(const LatticeExprNode &left, const LatticeExprNode &right)
Int ifloor(Float point)
Return the integer "less than" point (i.e.
Bool allNearAbs(Float val1, Double val2, Double tol=1.0e-5)