Files Classes Functions Hierarchy
#include <zero.h>
Public Member Functions | |
| template<> | |
| double | val |
| template<> | |
| double | val |
| template<> | |
| double | val |
| template<> | |
| double | val |
| template<> | |
| double | val |
| template<> | |
| double | val |
| template<> | |
| double | val |
| template<> | |
| double | val |
| template<> | |
| double | val |
| template<> | |
| double | val |
Static Public Member Functions | |
| static boolc | test (T const w) |
| Test if a number is zero. | |
Static Public Attributes | |
| static T | val |
| Generally a small positive number. | |
Numerical testing is subject to rounding errors. Often algorithms need to implement comparision testing where the in built rounding algorithms will fail.
Different zeros for different types can be defined. Do not instanciate the static member in a header, instead instanciate it in main.cpp file so that only one definition is generated.
template<> double zero<double>::val = 1E-20;
Definition at line 25 of file zero.h.
Definition at line 19 of file partitionstest.cpp.
Definition at line 4 of file mathdefaults.cpp.
Definition at line 22 of file treeindexedD2test.cpp.
1.5.8