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

Register floating point classification for hyperdual numbers

parent 6caee983
No related branches found
No related tags found
No related merge requests found
......@@ -609,6 +609,30 @@ bool operator!= (hyperdual lhs, double 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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment