TECA
The Toolkit for Extreme Climate Analysis
teca_coordinate_util::equal_tt< n_t > Struct Template Reference

traits classes used to get default tolerances for comparing numbers of a given precision. More...

#include <teca_coordinate_util.h>

Detailed Description

template<typename n_t>
struct teca_coordinate_util::equal_tt< n_t >

traits classes used to get default tolerances for comparing numbers of a given precision.

A relative tolerance is used for comparing large numbers and an absolute tolerance is used for comparing small numbers. these defaults are not universal and will not work well in all situations.

see also: https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/


The documentation for this struct was generated from the following file: