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); }
182 #if defined(AIPS_BSD)
207 inline Int sign(
Int val) {
return val<0 ? -1 : (val>0 ? 1:0);}
221 if (r != 0 && (x<0) != (y<0)) r+=y;
227 if (r != 0 && (x<0) != (y<0)) r+=y;
233 if (r != 0 && (x<0) != (y<0)) r+=y;
239 if (r != 0 && (x<0) != (y<0)) r+=y;
262 {
return near(val1, val2, tol); }
264 {
return near(val1, val2, tol); }
266 {
return near(val1, val2, tol); }
268 {
return near(val1, val2, tol); }
270 {
return near(val1, val2, tol); }
272 {
return near(val1, val2, tol); }
291 {
return nearAbs(val1, val2, tol); }
293 {
return nearAbs(val1, val2, tol); }
295 {
return nearAbs(val1, val2, tol); }
297 {
return nearAbs(val1, val2, tol); }
299 {
return nearAbs(val1, val2, tol); }
301 {
return nearAbs(val1, val2, tol); }
310 #if defined(AIPS_DARWIN)
311 return std::isfinite(val);
318 #if defined(AIPS_DARWIN)
319 return std::isfinite(val);
332 return (((*(
Int *)&(val) & 0x7f800000) == 0x7f800000) &&
333 ((*(
Int *)&(val) & 0x007fffff) != 0x00000000));
337 return ( std::isnan(val) );
357 void setNaN(
Float& val);
372 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)
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)
uInt abs(uInt Val)
Get the absolute value of uInt.
LatticeExprNode abs(const LatticeExprNode &expr)
Numerical 1-argument functions which result in a real number regardless of input expression type...
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)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.