From 843be9418b0e7c5fa4fd8e5e1af2a33cdcbe1e78 Mon Sep 17 00:00:00 2001 From: James Goppert Date: Fri, 3 Feb 2017 18:15:43 -0500 Subject: [PATCH] Rename isfinite to is_finite to avoid name conflicts. --- matrix/SquareMatrix.hpp | 2 +- matrix/helper_functions.hpp | 4 ++-- matrix/math.hpp | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/matrix/SquareMatrix.hpp b/matrix/SquareMatrix.hpp index 0457a03b1f..ddb059840d 100644 --- a/matrix/SquareMatrix.hpp +++ b/matrix/SquareMatrix.hpp @@ -241,7 +241,7 @@ bool inv(const SquareMatrix & A, SquareMatrix & inv) //check sanity of results for (size_t i = 0; i < M; i++) { for (size_t j = 0; j < M; j++) { - if (!isfinite(P(i,j))) { + if (!is_finite(P(i,j))) { return false; } } diff --git a/matrix/helper_functions.hpp b/matrix/helper_functions.hpp index 7e0fd4bff4..893f4da492 100644 --- a/matrix/helper_functions.hpp +++ b/matrix/helper_functions.hpp @@ -14,7 +14,7 @@ namespace matrix { template -bool isfinite(Type x) { +bool is_finite(Type x) { #if defined (__PX4_NUTTX) || defined (__PX4_QURT) return PX4_ISFINITE(x); #else @@ -25,7 +25,7 @@ bool isfinite(Type x) { template Type wrap_pi(Type x) { - if (!isfinite(x)) { + if (!is_finite(x)) { return x; } diff --git a/matrix/math.hpp b/matrix/math.hpp index 4a759efe63..b69d2e0eec 100644 --- a/matrix/math.hpp +++ b/matrix/math.hpp @@ -13,4 +13,3 @@ #include "Scalar.hpp" #include "Quaternion.hpp" #include "AxisAngle.hpp" -#include "helper_functions.hpp"