|
Peano
|
Comparison operator for boolean vectors. More...
#include <VectorCompare.h>

Public Member Functions | |
| VectorCompare (double accuracy=NUMERICAL_ZERO_DIFFERENCE) | |
| bool | operator() (const Vector< N, double > &left, const Vector< N, double > &right) const |
Private Attributes | |
| const double | _accuracy |
Comparison operator for boolean vectors.
If you wanna store sets of vectors (e.g. in a map), the STL libraries are by default falling back to a bit-wise comparison. This might not be of use if you manage sets/maps of double vectors. In this case, you wanna the container take into account machine precision. In such a case, declare the map e.g. as follows:
Definition at line 31 of file VectorCompare.h.
| tarch::la::VectorCompare< N >::VectorCompare | ( | double | accuracy = NUMERICAL_ZERO_DIFFERENCE | ) |
Definition at line 35 of file VectorCompare.h.
| bool tarch::la::VectorCompare< N >::operator() | ( | const Vector< N, double > & | left, |
| const Vector< N, double > & | right ) const |
Definition at line 40 of file VectorCompare.h.
References tarch::la::VectorCompare< N >::_accuracy, and tarch::la::firstGreater().

|
private |
Definition at line 33 of file VectorCompare.h.
Referenced by tarch::la::VectorCompare< N >::operator()().