Compare two data sets with ApproxMethod.rel. That is call scalarApproxRel on each couple of the data sets.
Compare two data sets with ApproxMethod.relAndAbs. That is call scalarApproxRelAndAbs on each couple of the data sets.
Compare two data sets with ApproxMethod.ulp. That is call scalarApproxUlp on each couple of the data sets.
Compare two data sets with ApproxMethod.ulpAndAbs. That is call scalarApproxUlpAndAbs on each couple of the data sets.
Different methods to check if two floating point values are close to each other.
Check with method given at runtime with default parameters a and b can be any data sets supported by the approx template
Generic template to check approx method on different sets of data.
Check whether the relative error between a and b is smaller than maxEps
Check whether the relative error between a and b is smaller than maxEps. If the absolute error is less than maxAbs, the test succeeds however. This is useful when comparing against zero the result of a subtraction.
Determines if two floating point scalars are maxUlps close to each other.
Determines if two floating point scalars are maxUlps close to each other. If the absolute error is less than maxAbs, the test succeeds however. This is useful when comparing against zero the result of a subtraction.
Compute the ULP difference between two floating point numbers Negative result indicates that b has higher ULP value than a.
This module is about comparison of floating point arithmetics. Supported by this very informative article: https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/