From 6fb3f0f209dcfa52245469814f6820c29248cd07 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Thu, 11 May 2023 13:58:55 -0400 Subject: [PATCH] use templated is_nan check --- gtsam/nonlinear/GncHelpers.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtsam/nonlinear/GncHelpers.h b/gtsam/nonlinear/GncHelpers.h index 1340958a3..6852e8131 100644 --- a/gtsam/nonlinear/GncHelpers.h +++ b/gtsam/nonlinear/GncHelpers.h @@ -18,7 +18,6 @@ #pragma once #include -#include #include namespace gtsam { @@ -433,7 +432,7 @@ class IncompleteGammaInverse { */ static constexpr T compute(const T a, const T p) noexcept { // Perform checks on the input and return the corresponding best answer - if (isnan(a) || isnan(p)) { // NaN check + if (is_nan(a) || is_nan(p)) { // NaN check return LIM::quiet_NaN(); } else if (LIM::min() > p) { // Check lower bound return T(0);