SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEUtils
SEUtils
IsClose.h
Go to the documentation of this file.
1
22
23
#ifndef SEUTILS_ISCLOSE_H
24
#define SEUTILS_ISCLOSE_H
25
26
namespace
SourceXtractor
{
27
28
bool
isClose
(
double
a,
double
b,
double
atol
= 1e-8,
double
rtol = 1e-5) {
29
return
std::abs(a - b) <= (
atol
+ rtol * std::abs(b));
30
}
31
32
}
// end SourceXtractor
33
34
#endif
// SEUTILS_ISCLOSE_H
std::atol
T atol(T... args)
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::isClose
bool isClose(double a, double b, double atol=1e-8, double rtol=1e-5)
Definition
IsClose.h:28
Generated by
1.14.0