Skip to content
Snippets Groups Projects
Commit 1272eb69 authored by Patrick Jaap's avatar Patrick Jaap
Browse files

Register floating point classification for hyperdual numbers

parent 6caee983
No related branches found
No related tags found
1 merge request!68Improve hyperdual class
...@@ -609,6 +609,30 @@ bool operator!= (hyperdual lhs, double rhs) ...@@ -609,6 +609,30 @@ bool operator!= (hyperdual lhs, double rhs)
return (lhs.f0 != rhs); return (lhs.f0 != rhs);
} }
bool isnormal( const hyperdual& x )
{
using std::isnormal;
return isnormal(x.real());
}
bool isfinite( const hyperdual& x )
{
using std::isfinite;
return isfinite(x.real());
}
bool isnan( const hyperdual& x )
{
using std::isnan;
return isnan(x.real());
}
bool isinf( const hyperdual& x )
{
using std::isinf;
return isinf(x.real());
}
namespace std namespace std
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment