Rename isfinite to is_finite to avoid name conflicts.

This commit is contained in:
James Goppert 2017-02-03 18:15:43 -05:00
parent 63aea23f9e
commit 843be9418b
3 changed files with 3 additions and 4 deletions

View File

@ -241,7 +241,7 @@ bool inv(const SquareMatrix<Type, M> & A, SquareMatrix<Type, M> & 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;
}
}

View File

@ -14,7 +14,7 @@ namespace matrix
{
template<typename Type>
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<typename Type>
Type wrap_pi(Type x)
{
if (!isfinite(x)) {
if (!is_finite(x)) {
return x;
}

View File

@ -13,4 +13,3 @@
#include "Scalar.hpp"
#include "Quaternion.hpp"
#include "AxisAngle.hpp"
#include "helper_functions.hpp"