Mesh Oriented datABase  (version 5.6.0)
An array-based unstructured mesh library
Util.hpp File Reference
#include "moab/MOABConfig.h"
#include "moab/Forward.hpp"
#include "moab/CartVect.hpp"
#include <cmath>
#include <limits>
+ Include dependency graph for Util.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  moab::Util
 Utility functions for computational geometry and mathematical calculations. More...
 

Namespaces

 moab
 Class representing axis-aligned bounding box.
 

Functions

template<typename T >
bool moab_isfinite (T x)
 

Function Documentation

◆ moab_isfinite()

template<typename T >
bool moab_isfinite ( x)
inline

MOAB, a Mesh-Oriented datABase, is a software component for creating, storing and accessing finite element mesh data.

Copyright 2004 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

Definition at line 27 of file Util.hpp.

27  {
28 #if defined(_MSC_VER) && (_MSC_VER < 1800)
29  // Old MSVC does not support std::isfinite
30  return _finite(static_cast<double>(x)) != 0;
31 #else
32  // Always use the standard C++11 version
33  return std::isfinite(x);
34 #endif
35 }

Referenced by moab::Util::is_finite().