Searched refs:relative_difference (Results 1 – 1 of 1) sorted by relevance
55 double relative_difference = absolute_difference / std::max(fabs(x), fabs(y)); in ExpectClose() local59 relative_difference = absolute_difference; in ExpectClose()61 if (relative_difference > max_abs_relative_difference) { in ExpectClose()63 x, y, absolute_difference, relative_difference); in ExpectClose()66 EXPECT_NEAR(relative_difference, 0.0, max_abs_relative_difference); in ExpectClose()67 return relative_difference <= max_abs_relative_difference; in ExpectClose()