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

Per-component functor returning \( t - e \) (scalar t with the quaternion e subtracted). More...

#include <Functional.hpp>

+ Inheritance diagram for CDPL::Math::Scalar1QuaternionSubtraction< T, Q >:

Public Types

typedef Scalar1QuaternionBinaryFunctor< T, Q >::Argument1Type Argument1Type
 
typedef Scalar1QuaternionBinaryFunctor< T, Q >::ResultType ResultType
 
- Public Types inherited from CDPL::Math::Scalar1QuaternionBinaryFunctor< T, Q >
typedef CommonType< T, typename Q::ValueType >::Type ResultType
 The component result type (common type of the scalar and the quaternion's element value type). More...
 
typedef const T & Argument1Type
 The first (scalar) argument type. More...
 

Static Public Member Functions

template<typename E >
static ResultType applyC1 (Argument1Type t, const QuaternionExpression< E > &e)
 Returns the C1 component of \( t - e \). More...
 
template<typename E >
static ResultType applyC2 (Argument1Type, const QuaternionExpression< E > &e)
 Returns the C2 component of \( t - e \). More...
 
template<typename E >
static ResultType applyC3 (Argument1Type, const QuaternionExpression< E > &e)
 Returns the C3 component of \( t - e \). More...
 
template<typename E >
static ResultType applyC4 (Argument1Type, const QuaternionExpression< E > &e)
 Returns the C4 component of \( t - e \). More...
 

Detailed Description

template<typename T, typename Q>
struct CDPL::Math::Scalar1QuaternionSubtraction< T, Q >

Per-component functor returning \( t - e \) (scalar t with the quaternion e subtracted).

Template Parameters
TThe scalar type.
QThe quaternion expression type.

Member Typedef Documentation

◆ Argument1Type

template<typename T , typename Q >
typedef Scalar1QuaternionBinaryFunctor<T, Q>::Argument1Type CDPL::Math::Scalar1QuaternionSubtraction< T, Q >::Argument1Type

◆ ResultType

template<typename T , typename Q >
typedef Scalar1QuaternionBinaryFunctor<T, Q>::ResultType CDPL::Math::Scalar1QuaternionSubtraction< T, Q >::ResultType

Member Function Documentation

◆ applyC1()

template<typename T , typename Q >
template<typename E >
static ResultType CDPL::Math::Scalar1QuaternionSubtraction< T, Q >::applyC1 ( Argument1Type  t,
const QuaternionExpression< E > &  e 
)
inlinestatic

Returns the C1 component of \( t - e \).

Template Parameters
EThe quaternion expression type.
Parameters
tThe scalar value on the left-hand side.
eThe quaternion expression on the right-hand side.
Returns
t - e.getC1().

◆ applyC2()

template<typename T , typename Q >
template<typename E >
static ResultType CDPL::Math::Scalar1QuaternionSubtraction< T, Q >::applyC2 ( Argument1Type  ,
const QuaternionExpression< E > &  e 
)
inlinestatic

Returns the C2 component of \( t - e \).

Template Parameters
EThe quaternion expression type.
Parameters
eThe quaternion expression on the right-hand side.
Returns
-e.getC2() (the scalar argument does not contribute to this component).

◆ applyC3()

template<typename T , typename Q >
template<typename E >
static ResultType CDPL::Math::Scalar1QuaternionSubtraction< T, Q >::applyC3 ( Argument1Type  ,
const QuaternionExpression< E > &  e 
)
inlinestatic

Returns the C3 component of \( t - e \).

Template Parameters
EThe quaternion expression type.
Parameters
eThe quaternion expression on the right-hand side.
Returns
-e.getC3() (the scalar argument does not contribute to this component).

◆ applyC4()

template<typename T , typename Q >
template<typename E >
static ResultType CDPL::Math::Scalar1QuaternionSubtraction< T, Q >::applyC4 ( Argument1Type  ,
const QuaternionExpression< E > &  e 
)
inlinestatic

Returns the C4 component of \( t - e \).

Template Parameters
EThe quaternion expression type.
Parameters
eThe quaternion expression on the right-hand side.
Returns
-e.getC4() (the scalar argument does not contribute to this component).

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