PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::Complex< Real > Class Template Reference

#include <Complex.h>

Public Member Functions

DYN_FUNC Complex ()
 
DYN_FUNC Complex (Real real, Real imag=Real(0))
 
DYN_FUNC Real realPart () const
 
DYN_FUNC Real imagPart () const
 
DYN_FUNC RealrealPart ()
 
DYN_FUNC RealimagPart ()
 
DYN_FUNC Complex< Realconjugate () const
 
DYN_FUNC Real norm () const
 
DYN_FUNC Real normSquared () const
 
DYN_FUNC bool isReal () const
 
DYN_FUNC const Complex< Realoperator+ (const Complex< Real > &other) const
 
DYN_FUNC const Complex< Realoperator- (const Complex< Real > &other) const
 
DYN_FUNC const Complex< Realoperator* (const Complex< Real > &other) const
 
DYN_FUNC const Complex< Realoperator/ (const Complex< Real > &other) const
 
DYN_FUNC Complex< Real > & operator+= (const Complex< Real > &other)
 
DYN_FUNC Complex< Real > & operator-= (const Complex< Real > &other)
 
DYN_FUNC Complex< Real > & operator*= (const Complex< Real > &other)
 
DYN_FUNC Complex< Real > & operator/= (const Complex< Real > &other)
 
DYN_FUNC Complex< Real > & operator= (const Complex< Real > &other)
 
DYN_FUNC bool operator== (const Complex< Real > &other) const
 
DYN_FUNC bool operator!= (const Complex< Real > &other) const
 
DYN_FUNC const Complex< Realoperator+ (const Real &real) const
 
DYN_FUNC const Complex< Realoperator- (const Real &real) const
 
DYN_FUNC const Complex< Realoperator* (const Real &real) const
 
DYN_FUNC const Complex< Realoperator/ (const Real &real) const
 
DYN_FUNC Complex< Real > & operator+= (const Real &real)
 
DYN_FUNC Complex< Real > & operator-= (const Real &real)
 
DYN_FUNC Complex< Real > & operator*= (const Real &real)
 
DYN_FUNC Complex< Real > & operator/= (const Real &real)
 
DYN_FUNC const Complex< Realoperator- (void) const
 

Protected Attributes

Real m_real
 
Real m_imag
 

Detailed Description

template<typename Real>
class dyno::Complex< Real >

Definition at line 22 of file Complex.h.

Constructor & Destructor Documentation

◆ Complex() [1/2]

template<typename Real>
DYN_FUNC dyno::Complex< Real >::Complex ( )

Definition at line 8 of file Complex.inl.

Here is the caller graph for this function:

◆ Complex() [2/2]

template<typename Real>
DYN_FUNC dyno::Complex< Real >::Complex ( Real real,
Real imag = Real(0) )
explicit

Definition at line 14 of file Complex.inl.

Member Function Documentation

◆ conjugate()

template<typename Real>
DYN_FUNC Complex< Real > dyno::Complex< Real >::conjugate ( ) const

Definition at line 207 of file Complex.inl.

Here is the call graph for this function:

◆ imagPart() [1/2]

template<typename Real>
DYN_FUNC Real & dyno::Complex< Real >::imagPart ( )
inline

Definition at line 31 of file Complex.h.

◆ imagPart() [2/2]

template<typename Real>
DYN_FUNC Real dyno::Complex< Real >::imagPart ( ) const
inline

Definition at line 28 of file Complex.h.

Here is the caller graph for this function:

◆ isReal()

template<typename Real>
DYN_FUNC bool dyno::Complex< Real >::isReal ( ) const

Definition at line 229 of file Complex.inl.

◆ norm()

template<typename Real>
DYN_FUNC Real dyno::Complex< Real >::norm ( ) const

Definition at line 215 of file Complex.inl.

Here is the caller graph for this function:

◆ normSquared()

template<typename Real>
DYN_FUNC Real dyno::Complex< Real >::normSquared ( ) const

Definition at line 222 of file Complex.inl.

◆ operator!=()

template<typename Real>
DYN_FUNC bool dyno::Complex< Real >::operator!= ( const Complex< Real > & other) const

Definition at line 120 of file Complex.inl.

Here is the call graph for this function:

◆ operator*() [1/2]

template<typename Real>
DYN_FUNC const Complex< Real > dyno::Complex< Real >::operator* ( const Complex< Real > & other) const

Definition at line 36 of file Complex.inl.

Here is the call graph for this function:

◆ operator*() [2/2]

template<typename Real>
DYN_FUNC const Complex< Real > dyno::Complex< Real >::operator* ( const Real & real) const

Definition at line 145 of file Complex.inl.

Here is the call graph for this function:

◆ operator*=() [1/2]

template<typename Real>
DYN_FUNC Complex< Real > & dyno::Complex< Real >::operator*= ( const Complex< Real > & other)
Here is the call graph for this function:

◆ operator*=() [2/2]

template<typename Real>
DYN_FUNC Complex< Real > & dyno::Complex< Real >::operator*= ( const Real & real)

Definition at line 179 of file Complex.inl.

Here is the call graph for this function:

◆ operator+() [1/2]

template<typename Real>
DYN_FUNC const Complex< Real > dyno::Complex< Real >::operator+ ( const Complex< Real > & other) const

Definition at line 20 of file Complex.inl.

Here is the call graph for this function:

◆ operator+() [2/2]

template<typename Real>
DYN_FUNC const Complex< Real > dyno::Complex< Real >::operator+ ( const Real & real) const

Definition at line 127 of file Complex.inl.

Here is the call graph for this function:

◆ operator+=() [1/2]

template<typename Real>
DYN_FUNC Complex< Real > & dyno::Complex< Real >::operator+= ( const Complex< Real > & other)

Definition at line 60 of file Complex.inl.

Here is the call graph for this function:

◆ operator+=() [2/2]

template<typename Real>
DYN_FUNC Complex< Real > & dyno::Complex< Real >::operator+= ( const Real & real)

Definition at line 164 of file Complex.inl.

Here is the call graph for this function:

◆ operator-() [1/3]

template<typename Real>
DYN_FUNC const Complex< Real > dyno::Complex< Real >::operator- ( const Complex< Real > & other) const

Definition at line 28 of file Complex.inl.

Here is the call graph for this function:

◆ operator-() [2/3]

template<typename Real>
DYN_FUNC const Complex< Real > dyno::Complex< Real >::operator- ( const Real & real) const

Definition at line 136 of file Complex.inl.

Here is the call graph for this function:

◆ operator-() [3/3]

template<typename Real>
DYN_FUNC const Complex< Real > dyno::Complex< Real >::operator- ( void ) const

Definition at line 197 of file Complex.inl.

Here is the call graph for this function:

◆ operator-=() [1/2]

template<typename Real>
DYN_FUNC Complex< Real > & dyno::Complex< Real >::operator-= ( const Complex< Real > & other)

Definition at line 68 of file Complex.inl.

Here is the call graph for this function:

◆ operator-=() [2/2]

template<typename Real>
DYN_FUNC Complex< Real > & dyno::Complex< Real >::operator-= ( const Real & real)

Definition at line 172 of file Complex.inl.

Here is the call graph for this function:

◆ operator/() [1/2]

template<typename Real>
DYN_FUNC const Complex< Real > dyno::Complex< Real >::operator/ ( const Complex< Real > & other) const

Definition at line 45 of file Complex.inl.

Here is the call graph for this function:

◆ operator/() [2/2]

template<typename Real>
DYN_FUNC const Complex< Real > dyno::Complex< Real >::operator/ ( const Real & real) const

Definition at line 155 of file Complex.inl.

Here is the call graph for this function:

◆ operator/=() [1/2]

template<typename Real>
DYN_FUNC Complex< Real > & dyno::Complex< Real >::operator/= ( const Complex< Real > & other)

Definition at line 86 of file Complex.inl.

Here is the call graph for this function:

◆ operator/=() [2/2]

template<typename Real>
DYN_FUNC Complex< Real > & dyno::Complex< Real >::operator/= ( const Real & real)

Definition at line 188 of file Complex.inl.

Here is the call graph for this function:

◆ operator=()

template<typename Real>
DYN_FUNC Complex< Real > & dyno::Complex< Real >::operator= ( const Complex< Real > & other)

Definition at line 98 of file Complex.inl.

Here is the call graph for this function:

◆ operator==()

template<typename Real>
DYN_FUNC bool dyno::Complex< Real >::operator== ( const Complex< Real > & other) const

Definition at line 108 of file Complex.inl.

Here is the call graph for this function:

◆ realPart() [1/2]

template<typename Real>
DYN_FUNC Real & dyno::Complex< Real >::realPart ( )
inline

Definition at line 30 of file Complex.h.

◆ realPart() [2/2]

template<typename Real>
DYN_FUNC Real dyno::Complex< Real >::realPart ( ) const
inline

Definition at line 27 of file Complex.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_imag

template<typename Real>
Real dyno::Complex< Real >::m_imag
protected

Definition at line 69 of file Complex.h.

◆ m_real

template<typename Real>
Real dyno::Complex< Real >::m_real
protected

Definition at line 68 of file Complex.h.


The documentation for this class was generated from the following files: