31 #include <casacore/casa/aips.h> 33 #include <casacore/casa/math.h> 34 #include <casacore/casa/stdlib.h> 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); }
179 #if defined(AIPS_BSD) 202 inline Int sign(
Int val) {
return val<0 ? -1 : (val>0 ? 1:0);}
225 {
return near(val1, val2, tol); }
227 {
return near(val1, val2, tol); }
229 {
return near(val1, val2, tol); }
231 {
return near(val1, val2, tol); }
233 {
return near(val1, val2, tol); }
235 {
return near(val1, val2, tol); }
254 {
return nearAbs(val1, val2, tol); }
256 {
return nearAbs(val1, val2, tol); }
258 {
return nearAbs(val1, val2, tol); }
260 {
return nearAbs(val1, val2, tol); }
262 {
return nearAbs(val1, val2, tol); }
264 {
return nearAbs(val1, val2, tol); }
273 #if defined(AIPS_DARWIN) 274 return std::isfinite(val);
281 #if defined(AIPS_DARWIN) 282 return std::isfinite(val);
295 return (((*(
Int *)&(val) & 0x7f800000) == 0x7f800000) &&
296 ((*(
Int *)&(val) & 0x007fffff) != 0x00000000));
300 return ( std::isnan(val) );
320 void setNaN(
Float& val);
335 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)
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.
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.
Float pow(Float f1, Float f2)
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...
Bool allNearAbs(Int val1, Int val2, Int tol=1)
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.
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)
Int ifloor(Float point)
Return the integer "less than" point (i.e.
Bool allNearAbs(Float val1, Double val2, Double tol=1.0e-5)
this file contains all the compiler specific defines