8 #ifndef COMMON_EPSILON_H
9 #define COMMON_EPSILON_H
20 bool EpsilonEqual(
const std::vector<T>& left,
const std::vector<T>& right,
22 if (left.size() != right.size()) {
26 for (
auto left_it = left.begin(), right_it = right.begin();
27 left_it != left.end(); ++left_it, ++right_it) {
28 if (std::abs(*left_it - *right_it) > epsilon) {
bool EpsilonEqual(const std::vector< T > &left, const std::vector< T > &right, const T &epsilon)
Definition: Epsilon.h:20
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53