Reference documentation for deal.II version Git 3ff8e288d2 2020-02-20 17:30:00 +0100
internal::MatrixFreeFunctions::FPArrayComparator< Number, VectorizedArrayType > Struct Template Reference

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

Detailed Description

template<typename Number, typename VectorizedArrayType = VectorizedArray<Number>> struct internal::MatrixFreeFunctions::FPArrayComparator< Number, VectorizedArrayType >

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

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