![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Functor returning the squared norm \( \|e\|^2 \) of a quaternion expression. More...
#include <Functional.hpp>
Inheritance diagram for CDPL::Math::QuaternionNorm2< Q >:Public Types | |
| typedef QuaternionScalarRealUnaryFunctor< Q >::ValueType | ValueType |
| typedef QuaternionScalarRealUnaryFunctor< Q >::RealType | RealType |
| typedef QuaternionScalarRealUnaryFunctor< Q >::ResultType | ResultType |
Public Types inherited from CDPL::Math::QuaternionScalarRealUnaryFunctor< Q > | |
| typedef Q::ValueType | ValueType |
| The quaternion's component value type. More... | |
| typedef ValueType | RealType |
| The real-valued type (alias for ValueType). More... | |
| typedef RealType | ResultType |
| The real-valued result type. More... | |
Static Public Member Functions | |
| static ResultType | apply (const QuaternionExpression< Q > &e) |
| Returns \( \|e\|^2 = C_1^2 + C_2^2 + C_3^2 + C_4^2 \). More... | |
Functor returning the squared norm \( \|e\|^2 \) of a quaternion expression.
| Q | The quaternion expression type. |
| typedef QuaternionScalarRealUnaryFunctor<Q>::ValueType CDPL::Math::QuaternionNorm2< Q >::ValueType |
| typedef QuaternionScalarRealUnaryFunctor<Q>::RealType CDPL::Math::QuaternionNorm2< Q >::RealType |
| typedef QuaternionScalarRealUnaryFunctor<Q>::ResultType CDPL::Math::QuaternionNorm2< Q >::ResultType |
|
inlinestatic |
Returns \( \|e\|^2 = C_1^2 + C_2^2 + C_3^2 + C_4^2 \).
| e | The quaternion expression. |