All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
roboptim::detail::DisableFPE Class Reference

Helper class used to disable floating-point exceptions. More...

#include <roboptim/core/util.hh>

Public Member Functions

 DisableFPE ()
 Constructor, disabling floating-point exceptions and storing the floating-point environment. More...
 
 ~DisableFPE ()
 Destructor, restoring the floating-point environment. More...
 

Detailed Description

Helper class used to disable floating-point exceptions.

Simply create an object in a scope where the exceptions should be disabled.

Constructor & Destructor Documentation

roboptim::detail::DisableFPE::DisableFPE ( )

Constructor, disabling floating-point exceptions and storing the floating-point environment.

ROBOPTIM_HAS_FENV_H

ROBOPTIM_HAS_FENV_H

roboptim::detail::DisableFPE::~DisableFPE ( )

Destructor, restoring the floating-point environment.

ROBOPTIM_HAS_FENV_H