![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Functor checking cell-wise approximate equality of two grid expressions within an absolute tolerance. More...
#include <Functional.hpp>
Inheritance diagram for CDPL::Math::GridToleranceEquality< G1, G2, T >:Public Types | |
| typedef Scalar3GridBooleanTernaryFunctor< G1, G2, T >::SizeType | SizeType |
| typedef Scalar3GridBooleanTernaryFunctor< G1, G2, T >::ValueType | ValueType |
| typedef Scalar3GridBooleanTernaryFunctor< G1, G2, T >::ResultType | ResultType |
| typedef Scalar3GridBooleanTernaryFunctor< G1, G2, T >::Argument3Type | Argument3Type |
Public Types inherited from CDPL::Math::Scalar3GridBooleanTernaryFunctor< G1, G2, T > | |
| typedef bool | ResultType |
| The boolean result type. More... | |
| typedef const T & | Argument3Type |
| The third (scalar) argument type. More... | |
| typedef CommonType< typename G1::SizeType, typename G2::SizeType >::Type | SizeType |
| The unsigned size type (common type of the two grid size types). More... | |
| typedef CommonType< typename G1::ValueType, typename G2::ValueType >::Type | ValueType |
| The cell value type (common type of the two grid cell types). More... | |
Static Public Member Functions | |
| static ResultType | apply (const GridExpression< G1 > &e1, const GridExpression< G2 > &e2, Argument3Type epsilon) |
| Tells whether e1 and e2 agree cell-wise within the absolute tolerance epsilon. More... | |
Functor checking cell-wise approximate equality of two grid expressions within an absolute tolerance.
| G1 | The first grid expression type. |
| G2 | The second grid expression type. |
| T | The tolerance scalar type. |
| typedef Scalar3GridBooleanTernaryFunctor<G1, G2, T>::SizeType CDPL::Math::GridToleranceEquality< G1, G2, T >::SizeType |
| typedef Scalar3GridBooleanTernaryFunctor<G1, G2, T>::ValueType CDPL::Math::GridToleranceEquality< G1, G2, T >::ValueType |
| typedef Scalar3GridBooleanTernaryFunctor<G1, G2, T>::ResultType CDPL::Math::GridToleranceEquality< G1, G2, T >::ResultType |
| typedef Scalar3GridBooleanTernaryFunctor<G1, G2, T>::Argument3Type CDPL::Math::GridToleranceEquality< G1, G2, T >::Argument3Type |
|
inlinestatic |
Tells whether e1 and e2 agree cell-wise within the absolute tolerance epsilon.
| e1 | The first grid expression. |
| e2 | The second grid expression. |
| epsilon | The non-negative absolute tolerance. |
true if the grids have equal dimensions and all cells agree within epsilon, and false otherwise.