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

Functor returning the sum of the four components of a quaternion expression. More...

#include <Functional.hpp>

+ Inheritance diagram for CDPL::Math::QuaternionElementSum< Q >:

Public Types

typedef QuaternionScalarUnaryFunctor< Q >::ResultType ResultType
 
- Public Types inherited from CDPL::Math::QuaternionScalarUnaryFunctor< Q >
typedef Q::ValueType ResultType
 The scalar result type (the quaternion's element value type). More...
 

Static Public Member Functions

static ResultType apply (const QuaternionExpression< Q > &e)
 Returns the component sum of e. More...
 

Detailed Description

template<typename Q>
struct CDPL::Math::QuaternionElementSum< Q >

Functor returning the sum of the four components of a quaternion expression.

Template Parameters
QThe quaternion expression type.

Member Typedef Documentation

◆ ResultType

Member Function Documentation

◆ apply()

template<typename Q >
static ResultType CDPL::Math::QuaternionElementSum< Q >::apply ( const QuaternionExpression< Q > &  e)
inlinestatic

Returns the component sum of e.

Parameters
eThe quaternion expression.
Returns
\( C_1(e) + C_2(e) + C_3(e) + C_4(e) \).

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