Reference documentation for deal.II version Git 7e76c9f1da 2019-09-19 09:07:25 +0200
List of all members
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 489 of file mapping_info.h.

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