From b815fc97c4e686a93a8074f27d1830a031b0d38d Mon Sep 17 00:00:00 2001 From: Roman Bapst Date: Tue, 12 Jun 2018 18:24:51 +0200 Subject: [PATCH] replace quiet_NaN() with INFINITY (#70) - solves undefined symbols for QURT Signed-off-by: Roman --- matrix/helper_functions.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/matrix/helper_functions.hpp b/matrix/helper_functions.hpp index ce8ba11456..43c28d571d 100644 --- a/matrix/helper_functions.hpp +++ b/matrix/helper_functions.hpp @@ -6,8 +6,6 @@ #include #endif -#include - namespace matrix { @@ -35,7 +33,7 @@ Type wrap_pi(Type x) x -= Type(2 * M_PI); if (c++ > 100) { - return std::numeric_limits::quiet_NaN(); + return INFINITY; } } @@ -45,7 +43,7 @@ Type wrap_pi(Type x) x += Type(2 * M_PI); if (c++ > 100) { - return std::numeric_limits::quiet_NaN(); + return INFINITY; } } @@ -65,7 +63,7 @@ Type wrap_2pi(Type x) x -= Type(2 * M_PI); if (c++ > 100) { - return std::numeric_limits::quiet_NaN(); + return INFINITY; } } @@ -75,7 +73,7 @@ Type wrap_2pi(Type x) x += Type(2 * M_PI); if (c++ > 100) { - return std::numeric_limits::quiet_NaN(); + return INFINITY; } }