#include <conjugate.h>
Public Types | |
enum | { array_size = ExprT::array_size } |
Record result size as an enum. More... | |
enum | { W = order_type::W, X = order_type::X, Y = order_type::Y, Z = order_type::Z } |
Localize the ordering as an enum. More... | |
typedef cml::et::not_assignable_tag | assignable_tag |
typedef unary_expression | expr_ary |
typedef expr_type | expr_const_reference |
typedef expr_traits::const_reference | expr_reference |
typedef ExprTraits< ExprT > | expr_traits |
typedef ConjugateOp< ExprT > | expr_type |
typedef vector_type::subvector_type | imaginary_type |
typedef result_type::order_type | order_type |
typedef quaternion_result_tag | result_tag |
typedef expr_traits::result_type | result_type |
typedef ExprT::size_tag | size_tag |
typedef result_type::temporary_type | temporary_type |
typedef ExprT::value_type | value_type |
typedef result_type::vector_type | vector_type |
Public Member Functions | |
ConjugateOp (const expr_type &e) | |
Copy constructor. | |
ConjugateOp (expr_reference expr) | |
Construct from the subexpression. | |
expr_reference | expression () const |
Return reference to contained expression. | |
imaginary_type | imaginary () const |
Return the vector part of the expression. | |
value_type | length () const |
Return the quaternion length. | |
value_type | length_squared () const |
Return square of the quaternion length. | |
value_type | norm () const |
Return the Cayley norm of the expression. | |
temporary_type | normalize () const |
Return the result as a normalized quaternion. | |
value_type | operator[] (size_t i) const |
Compute conjugated result at index i. | |
value_type | real () const |
Return the real part of the expression. | |
size_t | size () const |
Return size of this expression (same as argument's size). | |
Protected Attributes | |
expr_reference | m_expr |
Private Member Functions | |
expr_type & | operator= (const expr_type &) |
Definition at line 23 of file conjugate.h.
typedef cml::et::not_assignable_tag cml::et::ConjugateOp< ExprT >::assignable_tag |
Definition at line 49 of file conjugate.h.
typedef unary_expression cml::et::ConjugateOp< ExprT >::expr_ary |
Definition at line 30 of file conjugate.h.
typedef expr_type cml::et::ConjugateOp< ExprT >::expr_const_reference |
Definition at line 33 of file conjugate.h.
typedef expr_traits::const_reference cml::et::ConjugateOp< ExprT >::expr_reference |
Definition at line 43 of file conjugate.h.
typedef ExprTraits<ExprT> cml::et::ConjugateOp< ExprT >::expr_traits |
Definition at line 40 of file conjugate.h.
typedef ConjugateOp<ExprT> cml::et::ConjugateOp< ExprT >::expr_type |
Definition at line 27 of file conjugate.h.
typedef vector_type::subvector_type cml::et::ConjugateOp< ExprT >::imaginary_type |
Definition at line 58 of file conjugate.h.
typedef result_type::order_type cml::et::ConjugateOp< ExprT >::order_type |
Definition at line 61 of file conjugate.h.
typedef quaternion_result_tag cml::et::ConjugateOp< ExprT >::result_tag |
Definition at line 36 of file conjugate.h.
typedef expr_traits::result_type cml::et::ConjugateOp< ExprT >::result_type |
Definition at line 46 of file conjugate.h.
typedef ExprT::size_tag cml::et::ConjugateOp< ExprT >::size_tag |
Definition at line 37 of file conjugate.h.
typedef result_type::temporary_type cml::et::ConjugateOp< ExprT >::temporary_type |
Definition at line 52 of file conjugate.h.
typedef ExprT::value_type cml::et::ConjugateOp< ExprT >::value_type |
Definition at line 35 of file conjugate.h.
typedef result_type::vector_type cml::et::ConjugateOp< ExprT >::vector_type |
Definition at line 55 of file conjugate.h.
anonymous enum |
anonymous enum |
cml::et::ConjugateOp< ExprT >::ConjugateOp | ( | expr_reference | expr | ) | [inline, explicit] |
cml::et::ConjugateOp< ExprT >::ConjugateOp | ( | const expr_type & | e | ) | [inline] |
expr_reference cml::et::ConjugateOp< ExprT >::expression | ( | ) | const [inline] |
Return reference to contained expression.
Definition at line 130 of file conjugate.h.
References cml::et::ConjugateOp< ExprT >::m_expr.
imaginary_type cml::et::ConjugateOp< ExprT >::imaginary | ( | ) | const [inline] |
Return the vector part of the expression.
Definition at line 86 of file conjugate.h.
References cml::et::ConjugateOp< ExprT >::m_expr.
Referenced by cml::et::QuaternionInverseOp< ExprT >::imaginary().
value_type cml::et::ConjugateOp< ExprT >::length | ( | ) | const [inline] |
Return the quaternion length.
Definition at line 103 of file conjugate.h.
References cml::et::ConjugateOp< ExprT >::length_squared().
value_type cml::et::ConjugateOp< ExprT >::length_squared | ( | ) | const [inline] |
Return square of the quaternion length.
Definition at line 96 of file conjugate.h.
References cml::dot().
Referenced by cml::et::ConjugateOp< ExprT >::length(), and cml::et::ConjugateOp< ExprT >::norm().
value_type cml::et::ConjugateOp< ExprT >::norm | ( | ) | const [inline] |
Return the Cayley norm of the expression.
Definition at line 91 of file conjugate.h.
References cml::et::ConjugateOp< ExprT >::length_squared().
temporary_type cml::et::ConjugateOp< ExprT >::normalize | ( | ) | const [inline] |
expr_type& cml::et::ConjugateOp< ExprT >::operator= | ( | const expr_type & | ) | [private] |
value_type cml::et::ConjugateOp< ExprT >::operator[] | ( | size_t | i | ) | const [inline] |
Compute conjugated result at index i.
The conjugate of quaternion s + v is s - v.
Definition at line 117 of file conjugate.h.
References cml::et::ConjugateOp< ExprT >::m_expr, and cml::et::ConjugateOp< ExprT >::W.
value_type cml::et::ConjugateOp< ExprT >::real | ( | ) | const [inline] |
Return the real part of the expression.
Definition at line 81 of file conjugate.h.
References cml::et::ConjugateOp< ExprT >::m_expr.
Referenced by cml::et::QuaternionInverseOp< ExprT >::real().
size_t cml::et::ConjugateOp< ExprT >::size | ( | ) | const [inline] |
Return size of this expression (same as argument's size).
Definition at line 125 of file conjugate.h.
References cml::et::ConjugateOp< ExprT >::m_expr.
Referenced by cml::et::QuaternionInverseOp< ExprT >::size().
expr_reference cml::et::ConjugateOp< ExprT >::m_expr [protected] |
Definition at line 144 of file conjugate.h.
Referenced by cml::et::ConjugateOp< ExprT >::expression(), cml::et::ConjugateOp< ExprT >::imaginary(), cml::et::ConjugateOp< ExprT >::operator[](), cml::et::ConjugateOp< ExprT >::real(), and cml::et::ConjugateOp< ExprT >::size().