Reference documentation for deal.II version 9.0.0
List of all members
internal::MatrixFreeFunctions::FPArrayComparator< Number > Struct Template Reference

#include <deal.II/matrix_free/mapping_info.h>

Detailed Description

template<typename Number>
struct internal::MatrixFreeFunctions::FPArrayComparator< Number >

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 a 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 456 of file mapping_info.h.


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