![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Functor returning the sum of all elements of a vector expression. More...
#include <Functional.hpp>
Inheritance diagram for CDPL::Math::VectorElementSum< V >:Public Types | |
| typedef VectorScalarUnaryFunctor< V >::ResultType | ResultType |
Public Types inherited from CDPL::Math::VectorScalarUnaryFunctor< V > | |
| typedef V::ValueType | ResultType |
| The scalar result type (the vector's element value type). More... | |
| typedef V::SizeType | SizeType |
| The unsigned size type used by the vector. More... | |
Static Public Member Functions | |
| static ResultType | apply (const VectorExpression< V > &e) |
| Returns the sum of all elements of e. More... | |
Functor returning the sum of all elements of a vector expression.
| V | The vector expression type. |
| typedef VectorScalarUnaryFunctor<V>::ResultType CDPL::Math::VectorElementSum< V >::ResultType |
|
inlinestatic |
Returns the sum of all elements of e.
| e | The vector expression. |