18#include "kernels/TestUtils.h"
27using ::testing::FloatNear;
28using ::testing::Matcher;
30Matcher<std::vector<float>>
FloatArrayNear(
const std::vector<float> &values,
float max_abs_error)
32 std::vector<Matcher<float>> matchers;
33 matchers.reserve(values.size());
34 for (
const float v : values)
36 matchers.emplace_back(FloatNear(v, max_abs_error));
38 return ElementsAreArray(matchers);
Matcher< std::vector< float > > FloatArrayNear(const std::vector< float > &values, float max_abs_error)