floating_point.h File Reference

CPP API: floating_point.h File Reference
floating_point.h File Reference
#include "memilio/config.h"
#include <algorithm>
#include <cmath>
#include <limits>
Include dependency graph for floating_point.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mio
 A collection of classes to simplify handling of matrix shapes in meta programming.
 

Functions

template<typename FP >
FP mio::abs_max (FP v1, FP v2)
 maximum absolute value of two numbers. More...
 
template<typename FP >
bool mio::floating_point_equal (FP v1, FP v2, FP abs_tol=0, FP rel_tol=std::numeric_limits< FP >::min())
 compare two floating point values for equality with tolerances. More...
 
template<typename FP >
bool mio::floating_point_greater (FP v1, FP v2, FP abs_tol=0, FP rel_tol=std::numeric_limits< FP >::min())
 compare two floating point values with tolerances. More...
 
template<typename FP >
bool mio::floating_point_greater_equal (FP v1, FP v2, FP abs_tol=0, FP rel_tol=std::numeric_limits< FP >::min())
 compare two floating point values with tolerances. More...
 
template<typename FP >
bool mio::floating_point_less (FP v1, FP v2, FP abs_tol=0, FP rel_tol=std::numeric_limits< FP >::min())
 compare two floating point values with tolerances. More...
 
template<typename FP >
bool mio::floating_point_less_equal (FP v1, FP v2, FP abs_tol=0, FP rel_tol=std::numeric_limits< FP >::min())
 compare two floating point values with tolerances. More...