From 35219cea68f8ac9f5624072492cab1e370155b1f Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Sat, 11 Jan 2020 14:57:22 +0100 Subject: Bug #1790: Make `areApprox` check `numext::isnan` instead of bitwise equality (NaNs don't have to be bitwise equal). --- test/packetmath_test_shared.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/packetmath_test_shared.h') diff --git a/test/packetmath_test_shared.h b/test/packetmath_test_shared.h index 046fd8104..de1a05508 100644 --- a/test/packetmath_test_shared.h +++ b/test/packetmath_test_shared.h @@ -100,8 +100,12 @@ template bool areApprox(const Scalar* a, const Scalar* b, int s { for (int i=0; i >(a,size) << "]" << " != vec: [" << Map >(b,size) << "]\n"; return false; } -- cgit v1.2.3