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

Functor returning the sum of all cells of a grid expression. More...

#include <Functional.hpp>

+ Inheritance diagram for CDPL::Math::GridElementSum< G >:

Public Types

typedef GridScalarUnaryFunctor< G >::ResultType ResultType
 
- Public Types inherited from CDPL::Math::GridScalarUnaryFunctor< G >
typedef M::ValueType ResultType
 The scalar result type (the grid's cell value type). More...
 

Static Public Member Functions

static ResultType apply (const GridExpression< G > &e)
 Returns the cell sum of e. More...
 

Detailed Description

template<typename G>
struct CDPL::Math::GridElementSum< G >

Functor returning the sum of all cells of a grid expression.

Template Parameters
GThe grid expression type.

Member Typedef Documentation

◆ ResultType

Member Function Documentation

◆ apply()

template<typename G >
static ResultType CDPL::Math::GridElementSum< G >::apply ( const GridExpression< G > &  e)
inlinestatic

Returns the cell sum of e.

Parameters
eThe grid expression.
Returns
\( \sum_{i, j, k} e(i, j, k) \).

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