update hieplm
This commit is contained in:
11
utils/include/utils.h
Normal file
11
utils/include/utils.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef UTILIS_MSGS_H
|
||||
#define UTILIS_MSGS_H
|
||||
#include <cmath>
|
||||
|
||||
template <typename T>
|
||||
bool isEqual(const T& a, const T& b, double eps = 1e-5)
|
||||
{
|
||||
return std::fabs(a - b) < eps;
|
||||
}
|
||||
|
||||
#endif // UTILIS_MSGS_H
|
||||
Reference in New Issue
Block a user