We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8265e7a commit 1e569b2Copy full SHA for 1e569b2
src/Utilities/Testing.hpp
@@ -220,6 +220,17 @@ namespace GridKit
220
return fail == 0;
221
}
222
223
+ /**
224
+ * @brief Equatlity comparison between maps with a tolerance for the scalar value
225
+ *
226
+ * @tparam IdxT
227
+ * @tparam RealT
228
229
+ * @param[in] std::map<IdxT, RealT> - first map
230
+ * @param[in] std::map<IdxT, RealT> - second map
231
+ * @param[in] RealT - tolerance
232
+ * @return bool - true if the maps are equal; false otherwise
233
+ */
234
template <typename IdxT = size_t, typename RealT = double>
235
inline bool isEqual(std::map<IdxT, RealT> a,
236
std::map<IdxT, RealT> b,
0 commit comments