Chemical Data Processing Library C++ API - Version 1.4.0
Public Types | Static Public Member Functions | List of all members
CDPL::Math::GridToleranceEquality< G1, G2, T > Struct Template Reference

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...
 

Detailed Description

template<typename G1, typename G2, typename T>
struct CDPL::Math::GridToleranceEquality< G1, G2, T >

Functor checking cell-wise approximate equality of two grid expressions within an absolute tolerance.

Template Parameters
G1The first grid expression type.
G2The second grid expression type.
TThe tolerance scalar type.

Member Typedef Documentation

◆ SizeType

template<typename G1 , typename G2 , typename T >
typedef Scalar3GridBooleanTernaryFunctor<G1, G2, T>::SizeType CDPL::Math::GridToleranceEquality< G1, G2, T >::SizeType

◆ ValueType

template<typename G1 , typename G2 , typename T >
typedef Scalar3GridBooleanTernaryFunctor<G1, G2, T>::ValueType CDPL::Math::GridToleranceEquality< G1, G2, T >::ValueType

◆ ResultType

template<typename G1 , typename G2 , typename T >
typedef Scalar3GridBooleanTernaryFunctor<G1, G2, T>::ResultType CDPL::Math::GridToleranceEquality< G1, G2, T >::ResultType

◆ Argument3Type

template<typename G1 , typename G2 , typename T >
typedef Scalar3GridBooleanTernaryFunctor<G1, G2, T>::Argument3Type CDPL::Math::GridToleranceEquality< G1, G2, T >::Argument3Type

Member Function Documentation

◆ apply()

template<typename G1 , typename G2 , typename T >
static ResultType CDPL::Math::GridToleranceEquality< G1, G2, T >::apply ( const GridExpression< G1 > &  e1,
const GridExpression< G2 > &  e2,
Argument3Type  epsilon 
)
inlinestatic

Tells whether e1 and e2 agree cell-wise within the absolute tolerance epsilon.

Parameters
e1The first grid expression.
e2The second grid expression.
epsilonThe non-negative absolute tolerance.
Returns
true if the grids have equal dimensions and all cells agree within epsilon, and false otherwise.

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