Chemical Data Processing Library C++ API - Version 1.4.0
Public Types | List of all members
CDPL::Math::VectorScalarBinaryFunctor< V1, V2 > Struct Template Reference

Base class for binary functors that take two vectors and return a scalar (Math::VectorInnerProduct, Math::VectorAngleCosine). More...

#include <Functional.hpp>

+ Inheritance diagram for CDPL::Math::VectorScalarBinaryFunctor< V1, V2 >:

Public Types

typedef CommonType< typename V1::ValueType, typename V2::ValueType >::Type ResultType
 The scalar result type (common type of the two vector element types). More...
 

Detailed Description

template<typename V1, typename V2>
struct CDPL::Math::VectorScalarBinaryFunctor< V1, V2 >

Base class for binary functors that take two vectors and return a scalar (Math::VectorInnerProduct, Math::VectorAngleCosine).

Template Parameters
V1The first vector expression type.
V2The second vector expression type.

Member Typedef Documentation

◆ ResultType

template<typename V1 , typename V2 >
typedef CommonType<typename V1::ValueType, typename V2::ValueType>::Type CDPL::Math::VectorScalarBinaryFunctor< V1, V2 >::ResultType

The scalar result type (common type of the two vector element types).


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