Reference documentation for deal.II version 8.5.1
|
#include <deal.II/matrix_free/helper_functions.h>
A class that is used to compare floating point arrays (e.g. std::vectors, Tensor<1,dim>, etc.). The idea of this class is to consider two arrays as equal if they are the same within a given tolerance. We use this comparator class within an std::map<> of the given arrays. Note that this comparison operator does not satisfy all the mathematical properties one usually wants to have (consider e.g. the numbers a=0, b=0.1, c=0.2 with tolerance 0.15; the operator gives a<c, but neither of a<b? or b<c? is satisfied). This is not a problem in the use cases for this class, but be careful when using it in other contexts.
Definition at line 173 of file helper_functions.h.