Template Function GridKit::Testing::isEqual(std::map<IdxT, RealT>, std::map<IdxT, RealT>, const RealT)
Defined in File Testing.hpp
Function Documentation
-
template<typename IdxT = size_t, typename RealT = double>
inline bool GridKit::Testing::isEqual(std::map<IdxT, RealT> a, std::map<IdxT, RealT> b, const RealT tol = std::numeric_limits<RealT>::epsilon()) Equality comparison between maps with a tolerance for the scalar value.
- Template Parameters:
IdxT – - Integer data type
RealT – - Real type
- Parameters:
a – [in] - first map to compare
b – [in] - second map to compare
tol – [in] - tolerance
- Returns:
bool - true if the maps are equal; false otherwise