Searched refs:relative_difference (Results 1 – 1 of 1) sorted by relevance
54 double relative_difference = absolute_difference / std::max(fabs(x), fabs(y)); in ExpectClose() local58 relative_difference = absolute_difference; in ExpectClose()60 if (relative_difference > max_abs_relative_difference) { in ExpectClose()62 x, y, absolute_difference, relative_difference); in ExpectClose()65 EXPECT_NEAR(relative_difference, 0.0, max_abs_relative_difference); in ExpectClose()66 return relative_difference <= max_abs_relative_difference; in ExpectClose()