SourceXtractorPlusPlus
0.11
Please provide a description of the project.
SEUtils
SEUtils
IsClose.h
Go to the documentation of this file.
1
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::isClose
bool isClose(double a, double b, double atol=1e-8, double rtol=1e-5)
Definition:
IsClose.h:28
SourceXtractor
Definition:
Aperture.h:30
Generated by
1.8.14